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

feat(MissingTranslationHandler): pass additional paramaters to handle #230

Closed
wants to merge 26 commits into from
Closed

Conversation

DethAriel
Copy link
Contributor

  • pass key, translateService, and interpolateParams (if provided) to the handle method of MissingTranslationHandler for advanced scenarios.
  • MissingTranslationHandler README adjustments based on new function interface

Obsoletes #214 .
Closes #160, #221

@ocombe
Copy link
Member

ocombe commented Sep 7, 2016

Wow it looks nice, you even added the tests ! Thanks, I'll try to take a look at it soon (but really busy until next week)

fix(TranslateModule): use exported factory function to enable AOT compiling
fix(TranslateService): update cross browser support for getBrowserLang
Changed the peerDependencies, it will no longer support beta
@ocombe
Copy link
Member

ocombe commented Sep 23, 2016

Sorry, I didn't forget you, I just haven't had much time, I'll check this tomorrow. Could you fix the conflicts in the mean time ?

robwormald and others added 14 commits September 30, 2016 13:42
feat(npm): generate AoT files & distribute ES modules + UMD bundle

BREAKING CHANGE: the files are now available as ES modules or UMD bundle and no longer commonjs files

Fixes #218
Fixes #248 
Closes #242
BREAKING CHANGE: the files are now available as ES modules or UMD bundle and no longer commonjs files

Fixes #218
Fixes #248
Closes #242
Allows to avoid this case (used in the [plunker](http://plnkr.co/edit/btpW3l0jr5beJVjohy1Q?p=preview)):

`translate.addLangs(["en", "fr"]);
translate.setDefaultLang('en');

let browserLang = translate.getBrowserLang();
translate.use(browserLang.match(/en|fr/) ? browserLang : 'en');`
Add code snippet to use in case of AoT compiling (especially on Ionic 2 from RC 0)
See #218
@c1rus
Copy link

c1rus commented Oct 10, 2016

new plans to merge this?

* pass `key`, `translateService`, and `interpolateParams` (if provided) to the `handle` method of `MissingTranslationHandler` for advanced  scenarios.
@DethAriel
Copy link
Contributor Author

Fixed conflicts by rebasing onto the latest master, opened #275, closing current PR

@DethAriel DethAriel closed this Oct 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants