Releases: t2ym/i18n-behavior
Releases · t2ym/i18n-behavior
Stable Release 1.0.0
Features
- Instant I18N by one line addition of
I18nBehavior
- Minimal or no overhead for development: Run-time automatic extraction of hard-coded UI text strings from HTML templates
- Optimal for production: Build-time automatic extraction and bundling of hard-coded UI text strings from HTML templates by
gulp-i18n-preprocess
preprocessor
- Modular (per element) JSON support for storing and fetching localized UI text strings
- Bundled (per app) JSON support for storing and fetching localized UI text strings
- Automatic application of
<i18n-format>
with Unicode CLDR plural rules and Gender support
- Polymer 1.2.0's Compound Bindings support with
<i18n-format>
i18n-dom-bind
template instead of dom-bind
for instant I18N of bound templates
- Dynamic on-demand fetching of localized UI text strings from JSON under
locales
directories
- Real-time observation of
<html lang>
attribute value for UI text localization
- Robust fallback of missing UI text strings to parent locales and finally to the default locale (e.g. "fr-CA" -> "fr" -> "en") with practical BCP47 support
this.text
dynamic object shared among the same custom element to access localized strings
this.model
object deepcopied from this.text.model
object per instance to access localized attribute strings
i18n-attr-repo
to maintain repository of I18N target attributes
gulp-i18n-leverage
filter to merge changes in the default language in HTML templates into localized JSON resources.
gulp-i18n-leverage
filter to put meta infomation, that is, L10N "TO DO" list, for the merged changes in JSON resources
- Option to define I18N target strings manually by
<json-data>
elements
Known Limitation
- On Safari 7,
lang
property cannot be bound as {{lang}}
or {{f(lang)}}
due to the root cause of Issue #36. The property effectiveLang
can be safely used instead.
Modules
Pre-Release 0.0.36 (beta for Release 0.1.0)
- Fix #17. [Polymer 1.3.0] observeHtmlLang is undefined in i18n-dom-bind
- Specify polymer dependency as version ^1.2.4 to support 1.2.4 and later
Pre-Release 0.0.34
- Support Polymer 1.3.0 including Internet Explorer 11/10
- Fix #16. Patching the missing property effects for
lang
by Polymer.Base._createAccessors()
if it is missing
- Add minified test suites
Pre-Release 0.0.29 (beta for Release 0.1.0)
- Make test suites several times faster than Pre-Release 0.0.28 by skipping redundant test setup processes
- Test targeted browsers: Chrome, Firefox, Microsoft Edge, IE 11/10, Safari 9/8/7
- Add Testing section to README.md
Pre-Release 0.0.28 (beta for Release 0.1.0)
- Add tests for preprocessed templates by
gulp-i18n-preprocess 0.0.19
- Add tests for vulcanized templates by gulp-vulcanize with bundled localized JSON files
- Run all the same tests as run-time I18N (original source) with preprocessed and vulcanized templates
- Separate test in 3 phases to reduce test VM concurrency
- Target browsers are Chrome, Firefox, Microsoft Edge, Internet Explorer 11/10, Safari 9/8/7
Pre-Release 0.0.27 (beta for Release 0.1.0)
- Fix #13 IE10 compatibility for
i18n-dom-bind
- Add tests on compound binding
- Add tests on
i18n-dom-bind
with simple text, simple attribute, and compound bindings
Pre-Release 0.0.26 (beta for Release 0.1.0)
- Use
i18n-format
version 0.1.5 with broader browser support
- Add test on all the default browsers including Chrome, Firefox, Microsoft Edge, Internet Explorer 10/11, Safari 7/8/9
Pre-Release 0.0.25 (beta for 0.1.0)
- Add Sauce Labs tests for Microsoft Edge, IE11, Safari 9 in addition to Firefox and Chrome
- Add per-string language fallback tests
Pre-Release 0.0.24 (beta for 0.1.0)
- Add tests for language fallback per module
- Fix #10 Detached Ajax fetching instance is unexpectedly receiving response in language fallback
- Fix #11 Fallback to default language produce console.error()