Skip to content

Latest commit

 

History

History
838 lines (457 loc) · 27.8 KB

CHANGELOG.md

File metadata and controls

838 lines (457 loc) · 27.8 KB

2.7.0 (2015-05-02)

Bug Fixes

  • directive:
    • fix translate-value-* weren't be available on init (98e82798)
    • fix wrong initial translation causing overloading (657ed8a6)
    • fix issue with data- prefixed attributes #954 (ee253bc3)
    • make translate-values interpolate correctly with newer MessageFormat.js (887dc1b4)
    • Make interpolate message format work smoothly also on message format > 0.1.7 - f (2533f2d0)
    • handle interpolation of undefined keys correctly in updateTranslations, fixes is (3f7cf4cf)
  • docs:
    • fix invalid link in directive (985cfd5b)
    • typo in module type (f0527b14)
    • bug in "Flash of untranslated content" section (af5d746a)
  • feat: export module name improving usage module loaders #944 (cb33f63b)
  • messageformat: add duck type check for numbers #789 (bbc1cbef)
  • refresh: it has to clear all tables if no language key is specified (3cce7950)
  • service:
    • fix possible npe (1aaab980)
    • do not try to load a predefined fallback language (3be14df8)
    • fix an issue resolving after missing translations (a13899fc)
    • always remove stored ref for lang promises (dbd5be93, closes #824, #969)

Features

  • $translatePartialLoader: accept function in urlTemplate (401204aa)
  • build: introduce module definition (00b73ff6)
  • filter: add new option $translate.statefulFilter() (dec4bf34)
  • missingTranslationHandlerFactory: pass interpolationParams to missingTranslationHandlerFactory (a361fd05)
  • sanitization: refactored, fixed and extended sanitization #993 (12dbc575)
  • service: add uniformLanguageTagResolver (b534e1a3)

Breaking Changes

  • You will get a warning message when using the default security option (not escaping the content).

You can fix (and remove) this warning by explicit set a sanitization strategy within your config phase configuring $translateProvider. Even configuring the null mode will let the warning disapper. You are highly encouraged specifing any mode except null because of security concerns. (12dbc575)

2.6.1 (2015-03-01)

Bug Fixes

  • static-files-loader:
    • fix multiple files definition (docu update) #923, pr #936 (e637c01d)
    • fix multiple files definition #923 (1b6256a8)

2.6.0 (2015-02-08)

Bug Fixes

  • directive:
    • newlines before/after translation ids should be ignored (8dcf3e23, closes #909)
    • fix missing update using dynamic translationIds (faebe195, closes #854)
    • ensure internal watcher will be removed (e69f4a14)
    • fix minor memory leak (5e4533a4)
  • filter: apply notFoundIndicators also for instant translations correctly (5a9f436f, closes #866)
  • service:
    • fix an issue with default interpolator and expressions (75b7381f)
    • use $window/$windowProvider instead of window fix(docs): update ngdocs on storag (bfa7b7b2)
    • fallback languages follow shortcuts (fixes #758) (cce897a3)

Features

  • $translatePartialLoader: adds optional priority param to the addPart function (570617cf)
  • directive: add $translateProvider.directityPriority (b0b77162)
  • loader: support for multiple static translation files (c462ee6a)
  • service: extend loader api: add isPartLoaded and getRegisteredParts to $translatePartialL (54f8ab3e)

2.5.2 (2014-12-10)

Internal release. No changes.

2.5.1 (2014-12-10)

Bug Fixes

  • directive: missing watch for expression within elements text nodes (31c03560, closes #701)

2.5.0 (2014-12-07)

Bug Fixes

  • directive: ensure directive's text will be parsed at least once (49cfef0f)
  • loader: under certain circumstances translation table got lost (df373811)
  • messageformat-interpolation: fix support for messageformat 0.2.* (ac8d5ed1)
  • service:
    • fix npe when resolving fallback language for instant (7c09d89d)
    • apply fix for empty strings in navigator.language (5b4edd99)

Features

  • $translateUrlLoader: allow to use custom query parameter name for url loader (e360bf8c)
  • directive:
    • translate attributes (optimize process flow) (508fd32e)
    • translate attributes using directive (1d06d2a1, closes #568)
  • module: use same fallback for module.run when no storage key is set and not being able t (247253dd, closes #739)
  • storage: rename set() into put() (ef6a613e)

Breaking Changes

  • This marks storage.set() as deprecated. In the next major release v3, the old method set() will be dropped in favor of put().

Relates #772 (ef6a613e)

2.4.2 (2014-10-21)

Bug Fixes

  • partialloader: fix possible circular dependency (25f252c1, closes #766)

Features

  • directive: translate-cloak supports optional value for cloaking (f7ccb7fb)

2.4.1 (2014-10-03)

Bug Fixes

  • service:
    • constructor useUrlLoader() missed optional options (22f5c4b7)
    • add missing final event on new (async) translations (22cc8b42)
    • the loader options ($http) have been merged wrong #754 #547

2.4.0 (2014-09-22)

Features

service

  • introduce versionInfo function (e37d89c)

  • prefer detecting language by navigator.languages #722 (2204f4f)

  • enrich events with the currently handled language key (73b289d)

  • interpolate translationId in case of rejected translation (3efaac5)

loaders

  • introduce loader cache (b685601)

loader

  • apply support for loaderOptions.$http (8613bef)

Bug fixes

service

  • correctly iterate in fallback languages (fixes #690) (ac2f35c)

  • $nextLang should be not unset parallel loadings (d1745e4)

  • avoid possible doubled requested on refresh() (98d429d)

  • avoid possible npe in internal getTranslationTable() (9aaa9a0)

filter

  • mark filter being stateful required since Angular 1.3 rc2 (bffbf04)

  • interpolated params w/ scope aren't possible starting AJS1.3 (9465318)

2.3.0 (2014-09-16)

Bug Fixes

  • $translate: return $missingTranslationHandler result when no translation was found (7625951d)
  • bower.json: Avoid 'invalid-meta angular-bootstrap-affix is missing "ignore" entry in bower.j (595501a9)
  • demo: fixes wrong method call in demo (47fc9436)
  • directive:
    • improve the cloak-directive's performance (acab18ab)
    • change event for listening to $translateChangeEnd (98fe649a, closes #658)
  • docs:
    • fix example in directive ngdoc-documentation (fixes #678) (176b3e96)
    • Fix typo (6c2ab307)
  • package.json: remove unnecessary relative paths from package.json (8e5b87e7)
  • service:
    • use hasOwnProperty of prototype #638 (d8a5060b)
    • add shim for indexOf and trim #638 (b951fd50)
    • load fallback languages also for instant and filter (ed6023a4)
    • addition of preferred language to fallback language stack is now preventing dupl (b2bb1669)
  • storage:
    • fixup 75504cbe (53a8badb)
    • fix 'DOM Exception 18' at feature detection (75504cbe)
  • translateService:
    • fixup/rewrite for b48f6bb (specs) (45ac14d5)
    • prevent multiple XHR calls (b48f6bb4)

Features

  • directive: add possibility to mix translation interpolation with other text in element body (be621314, closes #461)

2.2.0 (2014-06-03)

Bug Fixes

  • fix npe on empty strings (trim()) (c69de7b8)
  • $translate:
    • checks modification (b91e4ded)
    • if translation exists, use the translated string even if it's empty (eeb8c2ad)
    • use case-insensitive check for language key aliases (26ec3088)
  • $translateProvider:
    • determinePreferredLanguage was not chainable (7c29f2fc, closes #487)
    • fix comparison in one case of negotiateLocale() (fe04c72f)
  • demo:
  • directive: Make translate-value-* work inside ng-if and ng-repeat (e07eea75)
  • docs: removes explicit protocol declaration for assets (eaa9bf7b)
  • gruntfile: fix image link (65fc8be3)
  • package.json: fix repository url (40af7ce7)
  • partialLoader: fixes deprecated usage of arguments.callee (1ac3a0a7)
  • service:
  • storageLocal: fixes QUOTAEXCEEDEDERROR (safari private browsing) (59aa2a01)
  • translateInterpolator: make it work with 1.3-beta (97e2241c)

Features

  • directive:
    • add option to define a default translation text (a8026651)
    • Support for camel casing interpolation variables. (b3450410)
  • messageformat-support: enhancing for sanitization like default (ad016861)
  • missingFallbackDefaultText: enables a feature to return a default text for displaying in case of missing tra (f24b15e8)
  • service:
    • allow using wildcards in language aliases (6f0ae3bf, closes #426)
    • add possibility to translate a set of translation ids (612dc27b)

2.1.0 (2014-04-02)

Features

directive

  • Support for camel casing interpolation variables. (4791e25)

  • add option to define a default translation text (fc57d26)

service

  • add possibility to translate a set of translation ids (57bd07c)

Bug fixes

$translate

  • use case-insensitive check for language key aliases (09a8bf1)

  • if translation exists, use the translated string even if it's empty (4ba736f)

  • docs annotation (8ef0415)

directive

  • Make translate-value-* work inside ng-if and ng-repeat (f22624b)

package.json

  • fix repository url (a410c9a)

$translateProvider

  • fix comparison in one case of negotiateLocale() (c2b94ca)

2.0.1 (2014-02-25)

Features

instant

  • invoke missing handler within $translate.instant(id) (aaf52b5)

Bug fixes

instant

  • fix possible npe in case of filters with undefineds (61a9490)

  • $translate.instant(id) does not return correct fallback (eec1d77)

refresh

  • fix bug in refresh if using partial loader (95c43b4)

$translate

  • Ensuring that languages will be set based on the order they are requested, not the order the responses come in. (32e1851)

2.0.0 (2014-02-16)

Features

  • add option to html escape all values (fe94c1f)

  • add option to html escape all values (e042c44)

  • add an option for post processing compiling (d5cd943)

$translateProvider

  • adds determinePreferredLanguage() (7cbfabe)

  • adds registerAvailableLanguagesKeys for negotiation (6bef6bd)

translateDirective

  • teaches directive custom translate-value-* attr (5c27467)

service

  • add $translate.instant() for instant translations (3a855eb)

filter

  • filter now use $translate.instant() since promises could not use (a1b8a17)

translateCloak

  • adds translate-cloak directive (c125c56)

Bug fixes

fallbackLanguage

  • Fix fallback languages loading and applying (4c5c47c)

loader-static-files.js

  • Now allows empty string as prefix and postfix. (051f431)

translateDirective

  • fixes bad coding convention (d5db4ad)

demo

  • links to demo resources updated to new locactions (fddaa49)

  • fix server routes + add index page (eb0a2dc)

$translate

  • Trim whitespace off translationId (4939424)

  • check for fallbacklanguage (321803d)

  • fix npe introduced in 4939424a30 (#281) (173a9bc)

  • avoid calls with empty translationId (sub issue of #298) (08f087b)

*

  • jshint fixes (1e3f8a6)

$translatePartialLoader

  • fixes docs annotation (d6ea84b)

guide/ru,uk

  • Fix uses->use in multi language (af59c6a)

service

  • fallback languages could not load when using instant() (26de486)

deps

  • add missing resolution (a98a2f6)

grunt

  • includes translate-cloak directive (84a59d2)

translateCloak

  • makes jshint happy (2058fd3)

docs

  • fixes links for languages (265490f)

1.1.1 (2013-11-24)

Features

core

  • Update required Node up 0.10 (b7cf5f4)

  • shortcuts and links\n\nShortcuts creates a shorter translationId if the last key equals the one before(foo.bar.bar -> foo.bar). Also added support for linking one translationID to another by prepending '@:'. So if foo.bar = '@:chuck.norris', then the value for chuck.norris will be retrieved instead. (f9f2cf2)

docs

  • Ukrainian docs

Bug fixes

docs

  • fixes encoding (084f08c)

grunt

  • fixes missing storage-key (635d290)

docs

  • fixes typo (7e1c4e9)

  • fixes typo in landing page (0b999ab)

translateDirective

  • fixes occuring 'translation id undefined' erros (bb5a2c4)

translatePartialLoader

  • introduces setPart() to add static parts on translatePartialLoader

1.1.0 (2013-09-02)

Features

translateService

  • added refresh() method (d41f91e)

translateProvider

  • makes methods chainable (cdc9e9e)

$translatePartialLoader

  • Basic implementation (81222bf)

Bug fixes

translateDirective

  • fixes bug that directive writes into scope (4e06468)

  • fixes scope handling (c566586)

translateService

  • reset proposed language if there's no pending loader (6b477fc)

1.0.2 (2013-08-07)

Bug fixes

typo

  • remove unnecessary semicolon (54cb232)

1.0.1 (2013-07-26)

  • Brings default interpolation back to core (you don't have to install it as extra package)

Bug fixes

platolink

  • deep link (d368bf3)

dependency

  • add 'angular-cookies' as bower devDependency (b6f1426)

demo

  • change src to angular-translate script (4be93b6)

1.0.0 (2013-07-23)

Features

translateService

  • missingTranslationHandler receives language (6fe6bb1)

  • adds method to configure indicators for not found translations (52a039f)

  • extracts default interpolation in standalone service (5d8cb56)

  • implements usage of different interpolation services (5e20e24)

  • informs interpolator when locale has changed (e59b141)

  • implements proposedLanguage() (6d34792)

messageformat-interpolation

  • implements usage of messageformat (5596e8b)

translateFilter

  • teaches filter to use custom interpolation (46f03cc)

translateDirective

  • teaches directives to use custom interpolation (bf3dbbb)

Bug fixes

tests

  • travis CI (629bb8d)

  • travis CI (c8624bf)

docs

  • fixes methodOf declaration of addInterpolation method (f1eeba7)

gh-pages

  • plato report (b85e19b)

0.9.4 (2013-06-21)

Features

translateService

  • removes empty options object requirement for loaders (c09d1dbe)

Bug fixes

translateService

  • fixes missingTranslationHandler-invokation bug (525b3533)

0.9.3 (2013-06-10)

Features

translateService

  • let translate service handle multiple promises (0e5d6d9d)

0.9.2 (2013-05-30)

Features

translateProvider

  • add fallbackLanguage() method (018991e8)

Bug fixes

translate.js

  • Allow blank translation values (97591a8f)

  • fix bower.json (c3898829)

0.9.1 (2013-05-25)

Remove $translateMissingTranslationHandlerLog service

0.9.0 (2013-05-23)

Features

translateProvider

  • add use*() methods for async loaders (f2329cc2)

Breaking Changes

demo

Old demo files are not available from now.

extensions

There are now extensions for loaders and storages

0.8.1 (2013-05-16)

Features

translateProvider

  • add methods to use different missingTranslationHandlers (f6ed3e3)

Bug fixes

docs

  • corrected typo (82569f0)

0.8.0 (2013-05-14)

  • rename module ngTranslate to pascalprecht.translate

0.7.1 (2013-05-13)

Features

chore

  • rename ngTranslate folder to src (65012d9)

0.7.0 (2013-05-13)

Features

chore

  • rename ngTranslate folder to src (65012d9)

0.7.0 (2013-05-12)

Features

translateProvider

  • missingTranslationHandler (3a5819e)

  • add a preferredLanguage property (563e9bf)

  • make translationTable extendable (8e3a455)

  • add useLoaderFactory() as shortcut method (2915e8b)

  • add storagePrefix() method (64cd99b)

docs

  • add documentation comments (b1efbca)

storageKey

  • add a storageKey method (dabf822)

translateService

  • add storage() method (98c2b12)

Bug fixes

tests

  • fix tests for preferredLanguage() (f1b5084)

  • Fix preferredLanguage tests (73efcfc)

  • Old values won't be ignored, so they have to be discarded (625b1d6)

directive

  • trim off white space around element.text() (e10173a)

0.6.0 (2013-05-03)

Features

ngmin

  • add grunt-ngmin (f630958)

$translate

  • add support for asynchronous loading

0.5.2 (2013-04-30)

Bug fixes

translateDirective

  • check for truthy value in watch callback (98087c7)

0.5.1 (2013-04-29)

Features

.jshintrc

  • add .jshintrc (0c8d3da)

.bowerrc

  • add .bowerrc (42363ee)

bower.json

  • rename component.json to bower.json (17acd10)

0.5.0 (2013-04-25)

Features

conventional-changelogs

  • Add grunt-conventional-changelog task (c8093a7)

0.4.4

Features

editorconfig

  • Added .editorconfig to make contribution as easy as possible

0.4.3

Fixes

translateDirective

  • Fixed bug that directive doesn't change contents when language is switched at runtime

0.4.2

Fixes

karma-dependency

  • Fixed dependencies (Karma 0.9.x isn't stable!)

0.4.0

Features

$translateProvider

  • Introducing $translateProvider.rememberLanguage()
  • You're now able to tell ngTranslate save lang state cross requests

0.3.0

Features

$translate

  • $translate Service now has method uses(key) to ask for currently used language

  • Language can now be changed at runtime

  • v.0.2.1

    • Revamped test suite structure
    • Added more tests
  • v.0.2.0

    • Added translate directive to handle translations
  • v.0.1.2

    • Fixed unit tests
    • Fixed karma.conf
    • Introduced $translateProvider.uses(key);
    • Implemented multi-lang support
  • v.0.1.1

    • Added CONTRIBUTING.md as guide for contributers
    • Added CHANGELOG.md
  • v.0.1.0

    • Added automated tests using karma and jasmine
    • Added Travis CI support