21 lines
726 B
HTML
21 lines
726 B
HTML
<link rel="import" href="../app-localize-behavior/app-localize-behavior.html">
|
|
|
|
<script>
|
|
|
|
// custom behaviour accessing the configuration above
|
|
StrolchLocalizeBehaviorImpl = {
|
|
attached: function() {
|
|
var locale = Strolch.getUserLocale();
|
|
|
|
// load the language resource of the configured language
|
|
this.language = locale;
|
|
this.useKeyIfMissing = true;
|
|
console.log('Loading locales ' + this.localesPath);
|
|
this.loadResources(this.resolveUrl(this.localesPath));
|
|
}
|
|
};
|
|
|
|
// inherit the behavior of the standard polymer localization
|
|
StrolchLocalizeBehavior = [Polymer.AppLocalizeBehavior, StrolchLocalizeBehaviorImpl];
|
|
</script>
|