Angular Translate Versions Save

DEPRECATED Translating your AngularJS 1.x apps

2.15.2

6 years ago

Bug Fixes

  • Timezone and DST agnostic Unit test (b3b04bd)
  • $translateSanitizationProvider: fix sanitization of boolean values (70f4843), closes #1747
  • service: fixed IE8 "Expected identifier" error (a30e37a)

2.15.1

7 years ago

Bug Fixes

2.15.0

7 years ago

Invitation for contribution

🏆 We have a curated list of open contribution requests for code and documentation. Maybe you can help us improving angular-translate!

Features

  • cookies: use $cookies (1.4+) or $cookieStore (<1.4) (51330f5)
  • filter: ensure no this==undefined will be injected (5cb94cb)

2.14.0

7 years ago

Important notes

  • This finally supports AngularJS 1.6 and messageformat.js 1.0 officially - until now you have to override the dependency manually. No more.
  • I'm glad to announce this release contains outstanding and long awaited fixes for translate-cloak and partial loader. A big "thank you" to @mtwar
  • #1671 should be worth looking into

Bug Fixes

  • $translate: reassign language promises in refresh, update translation tables at the appropriate time, and simplify the routine (351eb8f)
  • $translatePartialLoader: prevent duplicate simultaneous HTTP requests (8b2cea8)
  • service: add explicit promise rejection handler for $translate.use (f4dc14a)
  • service: avoid sanitize/esape calls on null/undefined param values (331e0dd)
  • service: fix missing promise rejection handlers (776993b)
  • staticFilesLoader: do not use empty string as $http params (ac2a038), closes #1646
  • tests: rewrite tests for AJS 1.6 compatibility (7c9d2c9)
  • translate: handle null translation (1e57b4f), closes #665
  • translateCloak: incorrect element reference, inappropriate decloak at onReady, inappropriate decloak at $translateChangeSuccess (a4d2795)

Features

  • dependencies: update to messageformat 1.0.2 (d4a0468)
  • service: add translationId as param of custom interpolation service interface (5de40de)
  • tests: add current AngularJS 1.6 in test scopes (d8abdc5)

2.13.1

7 years ago
  • #1642

2.13.0

7 years ago

Bug Fixes

  • service: fix .instant() not handling TrustedValueHolderType correctly (1ede55e), closes #1618
  • service: reject promise if handler returns undefined (8fe6f23), closes #1600
  • service: return empty string when found in fallback (d76227e)

Features

  • sanitize: sanitize override on instant call (01fecd0)
  • service: add $translate.getTranslationTable(langKey) (40f9e35)
  • service: add file map lookup into static-files loader (132e49a)
  • service: add mf configurer #1619 (676114b)

2.12.1

7 years ago

Bug Fixes

  • build: Add missing translate-attr directive to Gruntfile.js (e70e9ad), closes #1577
  • style: fix code style issues in ~-attr directive (1848bc8)

2.12.0

7 years ago

This update release contains both features and fixes.

🎉 Highlight features

8504c60 introduces an additional parameter argument context for sanitize strategies allowing to switch the behavior whether text should be transformed within a filter or not.

1624df5 adds two new sanitize strategies using the new context and improve handling utf8 characters. This is the result of the topic issue #1101 and all other linked issues. Please have a look at this overview: http://plnkr.co/edit/rJ0R6GzHGbMVxhSa237C?p=preview Unless there will come up issues, sce/sceParameters will be preferred/default strategy in future.

Bug Fixes

  • service: fix infinite loop when fallback language async loading fails (233f30c)
  • service: treat date param as-is (no sanitize/escape) (ab1ecce), closes #1560

Features

  • directive: introduce standalone translate-attr directive (bcb0f2c)
  • partial loader: add error response to errorHandler (e3aba1c)
  • service: introduce new sanitize strategies: sce/sceParameters (1624df5)
  • service: provide for sanitize/escape strategy 3rd argument context (8504c60)

2.11.1

7 years ago

Bug Fixes

  • dependencies: Update messageformat to ~0.3.1 (04e11c9)
  • grunt: add work-around for uglify preserveComments as expected (32cdedb), closes #1461
  • service: allow instant function to also take care of post process configuration (b7d7907)
  • service: avoid sanitizing of functions (492d8e5), closes #1529
  • service: Correct descriptive ngdocs to match parameters on the service calls (91711f7)
  • service: fix interpolation issue with non-string as input (fa4a80e), closes #1511
  • service: fix lost of data in async loader / error in runtime (5ee0c3e)

Features

  • directive: introduce a global keepContent setting (2015f79)

2.11.0

8 years ago

Bug Fixes

  • directive: reduced number of watchers by applying translateLanguage watcher only when direc (961fc92)
  • service: add missing hasOwnProperty check (823afc0)
  • service: avoid try to load languages which are explicitly not wanted (bde935e), closes #1390
  • service: fix edge-case with .use() and .preferredLanguage() (02688f2)
  • service: translations for forceLanguage will be loaded on demand (14bc956), closes #1389

Features

  • depenceny: Update messageformat.js to current 0.3.0 release (fb48f78)
  • directive: introduce attr translate-keep-content (b2cf8a3)
  • service: add $translate.resolveClientLocale() (also at provider) (d0469ac)
  • service: add support for uniformLanguageTag('iso639-1') (1e037ec), closes #1181
  • service: improve messageformat.js output caching (cb31608)
  • service: introduce getter returning available languages (3988af0), closes #1304
  • service: introduce post processing for translations (f0c4874)
  • service: support for default translation in missingTranslationHandler (8c5044c)