Skip to content

Commit

Permalink
script v2 + manual fixes in index.ts files for non-camelCase JSON fil…
Browse files Browse the repository at this point in the history
…enames
  • Loading branch information
Platonn committed Dec 20, 2024
1 parent 55201f3 commit d22139f
Show file tree
Hide file tree
Showing 707 changed files with 6,788 additions and 778 deletions.
10 changes: 10 additions & 0 deletions feature-libs/asm/assets/translations/cs/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/*
* SPDX-FileCopyrightText: 2024 SAP Spartacus team <[email protected]>
*
* SPDX-License-Identifier: Apache-2.0
*/

import asm from './asm.json';
export const cs = {
asm,
};
1 change: 0 additions & 1 deletion feature-libs/asm/assets/translations/de/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
*/

import asm from './asm.json';

export const de = {
asm,
};
1 change: 0 additions & 1 deletion feature-libs/asm/assets/translations/en/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
*/

import asm from './asm.json';

export const en = {
asm,
};
10 changes: 10 additions & 0 deletions feature-libs/asm/assets/translations/es/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/*
* SPDX-FileCopyrightText: 2024 SAP Spartacus team <[email protected]>
*
* SPDX-License-Identifier: Apache-2.0
*/

import asm from './asm.json';
export const es = {
asm,
};
10 changes: 10 additions & 0 deletions feature-libs/asm/assets/translations/es_CO/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/*
* SPDX-FileCopyrightText: 2024 SAP Spartacus team <[email protected]>
*
* SPDX-License-Identifier: Apache-2.0
*/

import asm from './asm.json';
export const es_CO = {
asm,
};
10 changes: 10 additions & 0 deletions feature-libs/asm/assets/translations/fr/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/*
* SPDX-FileCopyrightText: 2024 SAP Spartacus team <[email protected]>
*
* SPDX-License-Identifier: Apache-2.0
*/

import asm from './asm.json';
export const fr = {
asm,
};
10 changes: 10 additions & 0 deletions feature-libs/asm/assets/translations/hi/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/*
* SPDX-FileCopyrightText: 2024 SAP Spartacus team <[email protected]>
*
* SPDX-License-Identifier: Apache-2.0
*/

import asm from './asm.json';
export const hi = {
asm,
};
10 changes: 10 additions & 0 deletions feature-libs/asm/assets/translations/hu/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/*
* SPDX-FileCopyrightText: 2024 SAP Spartacus team <[email protected]>
*
* SPDX-License-Identifier: Apache-2.0
*/

import asm from './asm.json';
export const hu = {
asm,
};
10 changes: 10 additions & 0 deletions feature-libs/asm/assets/translations/id/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/*
* SPDX-FileCopyrightText: 2024 SAP Spartacus team <[email protected]>
*
* SPDX-License-Identifier: Apache-2.0
*/

import asm from './asm.json';
export const id = {
asm,
};
10 changes: 10 additions & 0 deletions feature-libs/asm/assets/translations/it/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/*
* SPDX-FileCopyrightText: 2024 SAP Spartacus team <[email protected]>
*
* SPDX-License-Identifier: Apache-2.0
*/

import asm from './asm.json';
export const it = {
asm,
};
1 change: 0 additions & 1 deletion feature-libs/asm/assets/translations/ja/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
*/

import asm from './asm.json';

export const ja = {
asm,
};
10 changes: 10 additions & 0 deletions feature-libs/asm/assets/translations/ko/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/*
* SPDX-FileCopyrightText: 2024 SAP Spartacus team <[email protected]>
*
* SPDX-License-Identifier: Apache-2.0
*/

import asm from './asm.json';
export const ko = {
asm,
};
10 changes: 10 additions & 0 deletions feature-libs/asm/assets/translations/pl/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/*
* SPDX-FileCopyrightText: 2024 SAP Spartacus team <[email protected]>
*
* SPDX-License-Identifier: Apache-2.0
*/

import asm from './asm.json';
export const pl = {
asm,
};
10 changes: 10 additions & 0 deletions feature-libs/asm/assets/translations/pt/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/*
* SPDX-FileCopyrightText: 2024 SAP Spartacus team <[email protected]>
*
* SPDX-License-Identifier: Apache-2.0
*/

import asm from './asm.json';
export const pt = {
asm,
};
10 changes: 10 additions & 0 deletions feature-libs/asm/assets/translations/ru/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/*
* SPDX-FileCopyrightText: 2024 SAP Spartacus team <[email protected]>
*
* SPDX-License-Identifier: Apache-2.0
*/

import asm from './asm.json';
export const ru = {
asm,
};
39 changes: 28 additions & 11 deletions feature-libs/asm/assets/translations/translations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,36 @@
* SPDX-License-Identifier: Apache-2.0
*/

import { TranslationChunksConfig, TranslationResources } from '@spartacus/core';
import { en } from './en/index';
import { ja } from './ja/index';
import { de } from './de/index';
import { zh } from './zh/index';

export const asmTranslations: TranslationResources = {
/**
* @deprecated use **specific language** translations (suffixed with language code) instead,
* like in the following example:
* ```diff
* i18n: {
* - resources: asmTranslations
* + resources: { en: asmTranslationsEn }
* }
* ```
*/
export const asmTranslations = {
en,
ja,
de,
zh,
};

export const asmTranslationChunksConfig: TranslationChunksConfig = {
asm: ['asm'],
};
export { cs as asmTranslationsCs } from './cs/index';
export { de as asmTranslationsDe } from './de/index';
export { en as asmTranslationsEn } from './en/index';
export { es as asmTranslationsEs } from './es/index';
export { es_CO as asmTranslationsEs_CO } from './es_CO/index';
export { fr as asmTranslationsFr } from './fr/index';
export { hi as asmTranslationsHi } from './hi/index';
export { hu as asmTranslationsHu } from './hu/index';
export { id as asmTranslationsId } from './id/index';
export { it as asmTranslationsIt } from './it/index';
export { ja as asmTranslationsJa } from './ja/index';
export { ko as asmTranslationsKo } from './ko/index';
export { pl as asmTranslationsPl } from './pl/index';
export { pt as asmTranslationsPt } from './pt/index';
export { ru as asmTranslationsRu } from './ru/index';
export { zh as asmTranslationsZh } from './zh/index';
export { zh_TW as asmTranslationsZh_TW } from './zh_TW/index';
1 change: 0 additions & 1 deletion feature-libs/asm/assets/translations/zh/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
*/

import asm from './asm.json';

export const zh = {
asm,
};
10 changes: 10 additions & 0 deletions feature-libs/asm/assets/translations/zh_TW/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/*
* SPDX-FileCopyrightText: 2024 SAP Spartacus team <[email protected]>
*
* SPDX-License-Identifier: Apache-2.0
*/

import asm from './asm.json';
export const zh_TW = {
asm,
};
10 changes: 10 additions & 0 deletions feature-libs/asm/customer-360/assets/translations/cs/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/*
* SPDX-FileCopyrightText: 2024 SAP Spartacus team <[email protected]>
*
* SPDX-License-Identifier: Apache-2.0
*/

import asmCustomer360 from './asmCustomer360.json';
export const cs = {
asmCustomer360,
};
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
*/

import asmCustomer360 from './asmCustomer360.json';

export const de = {
asmCustomer360,
};
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
*/

import asmCustomer360 from './asmCustomer360.json';

export const en = {
asmCustomer360,
};
10 changes: 10 additions & 0 deletions feature-libs/asm/customer-360/assets/translations/es/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/*
* SPDX-FileCopyrightText: 2024 SAP Spartacus team <[email protected]>
*
* SPDX-License-Identifier: Apache-2.0
*/

import asmCustomer360 from './asmCustomer360.json';
export const es = {
asmCustomer360,
};
10 changes: 10 additions & 0 deletions feature-libs/asm/customer-360/assets/translations/es_CO/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/*
* SPDX-FileCopyrightText: 2024 SAP Spartacus team <[email protected]>
*
* SPDX-License-Identifier: Apache-2.0
*/

import asmCustomer360 from './asmCustomer360.json';
export const es_CO = {
asmCustomer360,
};
10 changes: 10 additions & 0 deletions feature-libs/asm/customer-360/assets/translations/fr/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/*
* SPDX-FileCopyrightText: 2024 SAP Spartacus team <[email protected]>
*
* SPDX-License-Identifier: Apache-2.0
*/

import asmCustomer360 from './asmCustomer360.json';
export const fr = {
asmCustomer360,
};
10 changes: 10 additions & 0 deletions feature-libs/asm/customer-360/assets/translations/hi/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/*
* SPDX-FileCopyrightText: 2024 SAP Spartacus team <[email protected]>
*
* SPDX-License-Identifier: Apache-2.0
*/

import asmCustomer360 from './asmCustomer360.json';
export const hi = {
asmCustomer360,
};
10 changes: 10 additions & 0 deletions feature-libs/asm/customer-360/assets/translations/hu/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/*
* SPDX-FileCopyrightText: 2024 SAP Spartacus team <[email protected]>
*
* SPDX-License-Identifier: Apache-2.0
*/

import asmCustomer360 from './asmCustomer360.json';
export const hu = {
asmCustomer360,
};
10 changes: 10 additions & 0 deletions feature-libs/asm/customer-360/assets/translations/id/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/*
* SPDX-FileCopyrightText: 2024 SAP Spartacus team <[email protected]>
*
* SPDX-License-Identifier: Apache-2.0
*/

import asmCustomer360 from './asmCustomer360.json';
export const id = {
asmCustomer360,
};
10 changes: 10 additions & 0 deletions feature-libs/asm/customer-360/assets/translations/it/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/*
* SPDX-FileCopyrightText: 2024 SAP Spartacus team <[email protected]>
*
* SPDX-License-Identifier: Apache-2.0
*/

import asmCustomer360 from './asmCustomer360.json';
export const it = {
asmCustomer360,
};
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
*/

import asmCustomer360 from './asmCustomer360.json';

export const ja = {
asmCustomer360,
};
10 changes: 10 additions & 0 deletions feature-libs/asm/customer-360/assets/translations/ko/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/*
* SPDX-FileCopyrightText: 2024 SAP Spartacus team <[email protected]>
*
* SPDX-License-Identifier: Apache-2.0
*/

import asmCustomer360 from './asmCustomer360.json';
export const ko = {
asmCustomer360,
};
10 changes: 10 additions & 0 deletions feature-libs/asm/customer-360/assets/translations/pl/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/*
* SPDX-FileCopyrightText: 2024 SAP Spartacus team <[email protected]>
*
* SPDX-License-Identifier: Apache-2.0
*/

import asmCustomer360 from './asmCustomer360.json';
export const pl = {
asmCustomer360,
};
10 changes: 10 additions & 0 deletions feature-libs/asm/customer-360/assets/translations/pt/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/*
* SPDX-FileCopyrightText: 2024 SAP Spartacus team <[email protected]>
*
* SPDX-License-Identifier: Apache-2.0
*/

import asmCustomer360 from './asmCustomer360.json';
export const pt = {
asmCustomer360,
};
10 changes: 10 additions & 0 deletions feature-libs/asm/customer-360/assets/translations/ru/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/*
* SPDX-FileCopyrightText: 2024 SAP Spartacus team <[email protected]>
*
* SPDX-License-Identifier: Apache-2.0
*/

import asmCustomer360 from './asmCustomer360.json';
export const ru = {
asmCustomer360,
};
Loading

0 comments on commit d22139f

Please sign in to comment.