2016-01-15 17:01:02 +00:00
|
|
|
from . import util
|
|
|
|
|
2016-03-25 17:54:45 +00:00
|
|
|
from .en import English
|
|
|
|
from .de import German
|
2016-01-15 17:01:02 +00:00
|
|
|
|
2016-03-24 10:19:43 +00:00
|
|
|
|
2016-03-25 17:54:45 +00:00
|
|
|
util.register_lang(English.lang, English)
|
|
|
|
util.register_lang(German.lang, German)
|
|
|
|
|
|
|
|
|
|
|
|
def load(name, vectors=None, via=None):
|
|
|
|
package = util.get_package_by_name(name, via=via)
|
|
|
|
vectors_package = util.get_package_by_name(vectors, via=via)
|
|
|
|
cls = util.get_lang(name)
|
|
|
|
return cls(package=package, vectors_package=vectors_package)
|