Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/app/app.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ const localeConfig: SiLocaleConfig = {
defaultLocale: 'en',
localeInitializer: genericLocaleInitializer,
dynamicLanguageChange: false,
fallbackEnabled: false
fallbackEnabled: true
};

@Injectable()
Expand Down
16 changes: 11 additions & 5 deletions src/app/bundler-translate-loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,17 @@ export class BundlerTranslateLoader implements TranslateLoader {
// So we clone it.
return from(
Promise.all([
import(`../assets/i18n/${lang}.json`),
import('../assets/i18n-common/en.json')
]).then(([translations, commonTranslations]) => ({
...translations,
...commonTranslations
import(`../assets/i18n/element-ng/${lang}.json`),
import(`../assets/i18n/dashboards-ng/${lang}.json`),
import(`../assets/i18n/maps-ng/${lang}.json`),
import(`../assets/i18n/common/${lang}.json`),
import(`../assets/i18n/${lang}.json`)
]).then(([element, dashboards, maps, common, app]) => ({
...element,
...dashboards,
...maps,
...common,
...app
}))
);
}
Expand Down
File renamed without changes.
1 change: 1 addition & 0 deletions src/assets/i18n/common/de.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
1 change: 1 addition & 0 deletions src/assets/i18n/common/el.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
File renamed without changes.
1 change: 1 addition & 0 deletions src/assets/i18n/common/fr.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
3 changes: 3 additions & 0 deletions src/assets/i18n/dashboards-ng/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Element dashboards translations

This folder is populated by the translation platform with the keys extracted from dashboard components via the [element-translate-cli](../../../projects/element-translate-cli/README.md).
1 change: 1 addition & 0 deletions src/assets/i18n/dashboards-ng/de.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
1 change: 1 addition & 0 deletions src/assets/i18n/dashboards-ng/el.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
1 change: 1 addition & 0 deletions src/assets/i18n/dashboards-ng/en.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
1 change: 1 addition & 0 deletions src/assets/i18n/dashboards-ng/fr.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
3 changes: 3 additions & 0 deletions src/assets/i18n/element-ng/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Element translations

This folder is populated by the translation platform with the keys extracted from Element components via the [element-translate-cli](../../../projects/element-translate-cli/README.md).
1 change: 1 addition & 0 deletions src/assets/i18n/element-ng/de.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
1 change: 1 addition & 0 deletions src/assets/i18n/element-ng/el.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
1 change: 1 addition & 0 deletions src/assets/i18n/element-ng/en.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
1 change: 1 addition & 0 deletions src/assets/i18n/element-ng/fr.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
3 changes: 3 additions & 0 deletions src/assets/i18n/maps-ng/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Element maps translations

This folder is populated by the translation platform with the keys extracted from maps components via the [element-translate-cli](../../../projects/element-translate-cli/README.md).
1 change: 1 addition & 0 deletions src/assets/i18n/maps-ng/de.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
1 change: 1 addition & 0 deletions src/assets/i18n/maps-ng/el.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
1 change: 1 addition & 0 deletions src/assets/i18n/maps-ng/en.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
1 change: 1 addition & 0 deletions src/assets/i18n/maps-ng/fr.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
Loading