Skip to content

Commit a52001a

Browse files
committed
i18n: remove it language in options
The existing it file is a copy of en one. Should be added once we have translations for it. Signed-off-by: Louis Greiner <[email protected]>
1 parent b8c7612 commit a52001a

File tree

3 files changed

+2
-704
lines changed

3 files changed

+2
-704
lines changed

src/app/app.component.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
<sbb-option value="en">🇬🇧 English</sbb-option>
3636
<sbb-option value="de">🇩🇪 Deutsch</sbb-option>
3737
<sbb-option value="fr">🇫🇷 Français</sbb-option>
38-
<!-- <sbb-option value="it">🇮🇹 Italiano</sbb-option> -->
3938
</sbb-select>
4039
<hr />
4140
<button sbb-menu-item (click)="logout()">

src/app/core/i18n/i18n.service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {loadTranslations} from "@angular/localize";
66
providedIn: "root",
77
})
88
export class I18nService {
9-
readonly allowedLanguages = ["en", "fr", "de", "it"];
9+
readonly allowedLanguages = ["en", "fr", "de"];
1010
private currentLanguage: string = this.getLanguageFromStorage() || this.detectNavigatorLanguage();
1111
translations: any = {};
1212

@@ -21,7 +21,7 @@ export class I18nService {
2121
}
2222

2323
const languageModule = await import(
24-
/* webpackInclude: /(en|de|fr|it)\.mjs$/ */
24+
/* webpackInclude: /(en|de|fr)\.mjs$/ */
2525
`/node_modules/@angular/common/locales/${this.language}.mjs`
2626
);
2727
registerLocaleData(languageModule.default);

0 commit comments

Comments
 (0)