A Polymer behavior extension for localization i.e. i18n
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Robert von Burg f79c95b7bd
[Fix] Handle missing resources or language in localize function
Updated the localize function to better handle cases where resources or language are missing. Added a fallback mechanism and logging for improved debugging.
2026-09-15 10:37:11 +02:00
.gitignore [Minor] code cleanup 2018-03-29 12:26:40 +02:00
bower.json [Fix] Handle missing resources or language in localize function 2026-09-15 10:37:11 +02:00
LICENSE [Project] Initial commit, adding project files. 2017-02-20 12:57:39 +01:00
README.md [Minor] Fixed small typos 2017-08-14 10:58:24 +02:00
strolch-wc-localize-behavior.html [Fix] Handle missing resources or language in localize function 2026-09-15 10:37:11 +02:00

strolch-wc-localize-behavior

Custom localization behavior for Strolch Polymer-Apps.

Usage

Add the custom behavior in your app shell

behaviors: [StrolchLocalizeBehavior, ...]

and configure the language and resource file, e.g.:

strolchLocalLanguage = "en";

strolchLocalResourceUrl = this.resolveUrl("../locales.json");