Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Add Swiss backoffice localizations #2503

Merged
merged 3 commits into from
Nov 6, 2024
Merged
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
17 changes: 17 additions & 0 deletions src/assets/lang/de-ch.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/**
* Creator Name: The Umbraco community
* Creator Link: https://docs.umbraco.com/umbraco-cms/extending/language-files
*
* Language Alias: de_CH
* Language Int Name: German Switzerland (DE-CH)
* Language Local Name: Deutsch Schweiz (DE-CH)
* Language LCID: 7
* Language Culture: de-CH
*/
import de_de from './de-de.js';
import type { UmbLocalizationDictionary } from '@umbraco-cms/backoffice/localization-api';

export default {
// NOTE: Imports and re-exports the German (Germany) localizations, so that any German (Switzerland) localizations can be override them. [LK]
...de_de,
} as UmbLocalizationDictionary;
17 changes: 17 additions & 0 deletions src/assets/lang/fr-ch.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/**
* Creator Name: The Umbraco community
* Creator Link: https://docs.umbraco.com/umbraco-cms/extending/language-files
*
* Language Alias: fr_ch
* Language Int Name: French Switzerland (FR-CH)
* Language Local Name: Français Suisse (FR-CH)
* Language LCID: 12
* Language Culture: fr-CH
*/
import fr_fr from './fr-fr.js';
import type { UmbLocalizationDictionary } from '@umbraco-cms/backoffice/localization-api';

export default {
// NOTE: Imports and re-exports the French (France) localizations, so that any French (Switzerland) localizations can be override them. [LK]
...fr_fr,
} as UmbLocalizationDictionary;
17 changes: 17 additions & 0 deletions src/assets/lang/it-ch.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/**
* Creator Name: The Umbraco community
* Creator Link: https://docs.umbraco.com/umbraco-cms/extending/language-files
*
* Language Alias: it_ch
* Language Int Name: Italian Switzerland (IT-CH)
* Language Local Name: Italiano Svizerra (IT-CH)
* Language LCID: 16
* Language Culture: it-CH
*/
import it_it from './it-it.js';
import type { UmbLocalizationDictionary } from '@umbraco-cms/backoffice/localization-api';

export default {
// NOTE: Imports and re-exports the Italian (Italy) localizations, so that any Italian (Switzerland) localizations can be override them. [LK]
...it_it,
} as UmbLocalizationDictionary;
30 changes: 30 additions & 0 deletions src/packages/core/localization/manifests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,16 @@ export const manifests: Array<ManifestLocalization> = [
},
js: () => import('../../../assets/lang/de-de.js'),
},
{
type: 'localization',
alias: 'Umb.Localization.De-CH',
weight: -100,
name: 'Deutsch (Schweiz)',
meta: {
culture: 'de-ch',
},
js: () => import('../../../assets/lang/de-ch.js'),
},
{
type: 'localization',
alias: 'Umb.Localization.En-GB',
Expand Down Expand Up @@ -101,6 +111,16 @@ export const manifests: Array<ManifestLocalization> = [
},
js: () => import('../../../assets/lang/fr-fr.js'),
},
{
type: 'localization',
alias: 'Umb.Localization.Fr-CH',
weight: -100,
name: 'Français (Suisse)',
meta: {
culture: 'fr-ch',
},
js: () => import('../../../assets/lang/fr-ch.js'),
},
{
type: 'localization',
alias: 'Umb.Localization.He-IL',
Expand Down Expand Up @@ -131,6 +151,16 @@ export const manifests: Array<ManifestLocalization> = [
},
js: () => import('../../../assets/lang/it-it.js'),
},
{
type: 'localization',
alias: 'Umb.Localization.It-CH',
weight: -100,
name: 'Italiano (Svizerra)',
meta: {
culture: 'it-ch',
},
js: () => import('../../../assets/lang/it-ch.js'),
},
{
type: 'localization',
alias: 'Umb.Localization.Ja-JP',
Expand Down
Loading