2017-08-14 10:58:24 +02:00
|
|
|
# strolch-wc-localize-behavior
|
2017-02-20 12:57:39 +01:00
|
|
|
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");`
|