Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ag #28 babelfish solo #29

Merged
merged 14 commits into from
Jul 29, 2014
Merged

Ag #28 babelfish solo #29

merged 14 commits into from
Jul 29, 2014

Conversation

dhoko
Copy link
Owner

@dhoko dhoko commented Jul 29, 2014

Changelog

  • Upgrade demo
  • Introduce a new module: ngBabelfish.solo
  • Move reporter from progress to mocha
  • Patch i18nBind for lazy mode
  • Upgrade translator to be solo or not
  • Upgrade translator: you can now load another language without reload the app
  • new translator API:
    • initSolo(config): Load configuration for the translator factory in solo mode
    • loadTranslation(lang,url): Load a new language to your app without modify the provider
    • isLangLoaded(lang): Check if a lang is loaded
    • getNamespace(): Return the name of your namespace
    • translations() : Return all your translations
  • new provider methods:
    • init(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

  • ngBabelfish.solo
    • directives: i18nBind and i18nLoad
      factory: translator with a custom constructor: initSolo()
  • ngBabelfish
    • provider: babelfish
    • filter: translate

ngBabelfish has one dep: ngBabelfish.solo.

dhoko added a commit that referenced this pull request Jul 29, 2014
@dhoko dhoko merged commit 9b36dea into master Jul 29, 2014
@dhoko dhoko deleted the ag_#28_babelfish_solo branch July 29, 2014 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant