Closed dhoko closed 10 years ago
ngBabelfish.solo
initSolo(config)
loadTranslation(lang,url)
isLangLoaded(lang)
getNamespace()
translations()
init(config)
lang({lang: "en-EN", url: "xxx.json"})
i18nBind
i18nLoad
translator
initSolo()
babelfish
translate
ngBabelfish has one dep: ngBabelfish.solo.
Changelog
ngBabelfish.solo
initSolo(config)
: Load configuration for the translator factory in solo modeloadTranslation(lang,url)
: Load a new language to your app without modify the providerisLangLoaded(lang)
: Check if a lang is loadedgetNamespace()
: Return the name of your namespacetranslations()
: Return all your translationsinit(config)
: Replace the previous languages() (now deprecated)lang({lang: "en-EN", url: "xxx.json"})
: Load a new lang for the lazy mode (return this)2 modules
i18nBind
andi18nLoad
factory:translator
with a custom constructor:initSolo()
babelfish
translate
ngBabelfish has one dep:
ngBabelfish.solo
.