diff --git a/feature-libs/asm/assets/translations/cs/index.ts b/feature-libs/asm/assets/translations/cs/index.ts new file mode 100644 index 00000000000..4ba241a8e26 --- /dev/null +++ b/feature-libs/asm/assets/translations/cs/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import asm from './asm.json'; +export const cs = { + asm, +}; diff --git a/feature-libs/asm/assets/translations/de/index.ts b/feature-libs/asm/assets/translations/de/index.ts index 7ecc2b63577..ea62722ced1 100644 --- a/feature-libs/asm/assets/translations/de/index.ts +++ b/feature-libs/asm/assets/translations/de/index.ts @@ -5,7 +5,6 @@ */ import asm from './asm.json'; - export const de = { asm, }; diff --git a/feature-libs/asm/assets/translations/en/index.ts b/feature-libs/asm/assets/translations/en/index.ts index 027fea8014c..9c81d70f1b8 100644 --- a/feature-libs/asm/assets/translations/en/index.ts +++ b/feature-libs/asm/assets/translations/en/index.ts @@ -5,7 +5,6 @@ */ import asm from './asm.json'; - export const en = { asm, }; diff --git a/feature-libs/asm/assets/translations/es/index.ts b/feature-libs/asm/assets/translations/es/index.ts new file mode 100644 index 00000000000..e25091c0ab8 --- /dev/null +++ b/feature-libs/asm/assets/translations/es/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import asm from './asm.json'; +export const es = { + asm, +}; diff --git a/feature-libs/asm/assets/translations/es_CO/index.ts b/feature-libs/asm/assets/translations/es_CO/index.ts new file mode 100644 index 00000000000..659d382623f --- /dev/null +++ b/feature-libs/asm/assets/translations/es_CO/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import asm from './asm.json'; +export const es_CO = { + asm, +}; diff --git a/feature-libs/asm/assets/translations/fr/index.ts b/feature-libs/asm/assets/translations/fr/index.ts new file mode 100644 index 00000000000..f8ffc8f602b --- /dev/null +++ b/feature-libs/asm/assets/translations/fr/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import asm from './asm.json'; +export const fr = { + asm, +}; diff --git a/feature-libs/asm/assets/translations/hi/index.ts b/feature-libs/asm/assets/translations/hi/index.ts new file mode 100644 index 00000000000..ac372d4ab3a --- /dev/null +++ b/feature-libs/asm/assets/translations/hi/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import asm from './asm.json'; +export const hi = { + asm, +}; diff --git a/feature-libs/asm/assets/translations/hu/index.ts b/feature-libs/asm/assets/translations/hu/index.ts new file mode 100644 index 00000000000..0fcad72608c --- /dev/null +++ b/feature-libs/asm/assets/translations/hu/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import asm from './asm.json'; +export const hu = { + asm, +}; diff --git a/feature-libs/asm/assets/translations/id/index.ts b/feature-libs/asm/assets/translations/id/index.ts new file mode 100644 index 00000000000..7a41cd78835 --- /dev/null +++ b/feature-libs/asm/assets/translations/id/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import asm from './asm.json'; +export const id = { + asm, +}; diff --git a/feature-libs/asm/assets/translations/it/index.ts b/feature-libs/asm/assets/translations/it/index.ts new file mode 100644 index 00000000000..e2bbad886be --- /dev/null +++ b/feature-libs/asm/assets/translations/it/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import asm from './asm.json'; +export const it = { + asm, +}; diff --git a/feature-libs/asm/assets/translations/ja/index.ts b/feature-libs/asm/assets/translations/ja/index.ts index 30dcfec60bf..010832393e4 100644 --- a/feature-libs/asm/assets/translations/ja/index.ts +++ b/feature-libs/asm/assets/translations/ja/index.ts @@ -5,7 +5,6 @@ */ import asm from './asm.json'; - export const ja = { asm, }; diff --git a/feature-libs/asm/assets/translations/ko/index.ts b/feature-libs/asm/assets/translations/ko/index.ts new file mode 100644 index 00000000000..f9f7441b58d --- /dev/null +++ b/feature-libs/asm/assets/translations/ko/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import asm from './asm.json'; +export const ko = { + asm, +}; diff --git a/feature-libs/asm/assets/translations/pl/index.ts b/feature-libs/asm/assets/translations/pl/index.ts new file mode 100644 index 00000000000..19ec1978ee1 --- /dev/null +++ b/feature-libs/asm/assets/translations/pl/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import asm from './asm.json'; +export const pl = { + asm, +}; diff --git a/feature-libs/asm/assets/translations/pt/index.ts b/feature-libs/asm/assets/translations/pt/index.ts new file mode 100644 index 00000000000..63261820269 --- /dev/null +++ b/feature-libs/asm/assets/translations/pt/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import asm from './asm.json'; +export const pt = { + asm, +}; diff --git a/feature-libs/asm/assets/translations/ru/index.ts b/feature-libs/asm/assets/translations/ru/index.ts new file mode 100644 index 00000000000..cc014637e46 --- /dev/null +++ b/feature-libs/asm/assets/translations/ru/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import asm from './asm.json'; +export const ru = { + asm, +}; diff --git a/feature-libs/asm/assets/translations/translations.ts b/feature-libs/asm/assets/translations/translations.ts index 472ab0c4a30..5a894585199 100644 --- a/feature-libs/asm/assets/translations/translations.ts +++ b/feature-libs/asm/assets/translations/translations.ts @@ -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'; diff --git a/feature-libs/asm/assets/translations/zh/index.ts b/feature-libs/asm/assets/translations/zh/index.ts index 9968efab9f6..f920ca929c2 100644 --- a/feature-libs/asm/assets/translations/zh/index.ts +++ b/feature-libs/asm/assets/translations/zh/index.ts @@ -5,7 +5,6 @@ */ import asm from './asm.json'; - export const zh = { asm, }; diff --git a/feature-libs/asm/assets/translations/zh_TW/index.ts b/feature-libs/asm/assets/translations/zh_TW/index.ts new file mode 100644 index 00000000000..9a302b6d85b --- /dev/null +++ b/feature-libs/asm/assets/translations/zh_TW/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import asm from './asm.json'; +export const zh_TW = { + asm, +}; diff --git a/feature-libs/asm/customer-360/assets/translations/cs/index.ts b/feature-libs/asm/customer-360/assets/translations/cs/index.ts new file mode 100644 index 00000000000..bfabc29b53e --- /dev/null +++ b/feature-libs/asm/customer-360/assets/translations/cs/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import asmCustomer360 from './asmCustomer360.json'; +export const cs = { + asmCustomer360, +}; diff --git a/feature-libs/asm/customer-360/assets/translations/de/index.ts b/feature-libs/asm/customer-360/assets/translations/de/index.ts index 93fb4ec1783..2a2033dc46b 100644 --- a/feature-libs/asm/customer-360/assets/translations/de/index.ts +++ b/feature-libs/asm/customer-360/assets/translations/de/index.ts @@ -5,7 +5,6 @@ */ import asmCustomer360 from './asmCustomer360.json'; - export const de = { asmCustomer360, }; diff --git a/feature-libs/asm/customer-360/assets/translations/en/index.ts b/feature-libs/asm/customer-360/assets/translations/en/index.ts index b80b68f3c4d..39318380042 100644 --- a/feature-libs/asm/customer-360/assets/translations/en/index.ts +++ b/feature-libs/asm/customer-360/assets/translations/en/index.ts @@ -5,7 +5,6 @@ */ import asmCustomer360 from './asmCustomer360.json'; - export const en = { asmCustomer360, }; diff --git a/feature-libs/asm/customer-360/assets/translations/es/index.ts b/feature-libs/asm/customer-360/assets/translations/es/index.ts new file mode 100644 index 00000000000..8efcf353d0a --- /dev/null +++ b/feature-libs/asm/customer-360/assets/translations/es/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import asmCustomer360 from './asmCustomer360.json'; +export const es = { + asmCustomer360, +}; diff --git a/feature-libs/asm/customer-360/assets/translations/es_CO/index.ts b/feature-libs/asm/customer-360/assets/translations/es_CO/index.ts new file mode 100644 index 00000000000..a27fcc3c74a --- /dev/null +++ b/feature-libs/asm/customer-360/assets/translations/es_CO/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import asmCustomer360 from './asmCustomer360.json'; +export const es_CO = { + asmCustomer360, +}; diff --git a/feature-libs/asm/customer-360/assets/translations/fr/index.ts b/feature-libs/asm/customer-360/assets/translations/fr/index.ts new file mode 100644 index 00000000000..84ac0fb3245 --- /dev/null +++ b/feature-libs/asm/customer-360/assets/translations/fr/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import asmCustomer360 from './asmCustomer360.json'; +export const fr = { + asmCustomer360, +}; diff --git a/feature-libs/asm/customer-360/assets/translations/hi/index.ts b/feature-libs/asm/customer-360/assets/translations/hi/index.ts new file mode 100644 index 00000000000..52f58ae1809 --- /dev/null +++ b/feature-libs/asm/customer-360/assets/translations/hi/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import asmCustomer360 from './asmCustomer360.json'; +export const hi = { + asmCustomer360, +}; diff --git a/feature-libs/asm/customer-360/assets/translations/hu/index.ts b/feature-libs/asm/customer-360/assets/translations/hu/index.ts new file mode 100644 index 00000000000..a3b5eb1e5a4 --- /dev/null +++ b/feature-libs/asm/customer-360/assets/translations/hu/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import asmCustomer360 from './asmCustomer360.json'; +export const hu = { + asmCustomer360, +}; diff --git a/feature-libs/asm/customer-360/assets/translations/id/index.ts b/feature-libs/asm/customer-360/assets/translations/id/index.ts new file mode 100644 index 00000000000..771a52ae5e0 --- /dev/null +++ b/feature-libs/asm/customer-360/assets/translations/id/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import asmCustomer360 from './asmCustomer360.json'; +export const id = { + asmCustomer360, +}; diff --git a/feature-libs/asm/customer-360/assets/translations/it/index.ts b/feature-libs/asm/customer-360/assets/translations/it/index.ts new file mode 100644 index 00000000000..4464c589329 --- /dev/null +++ b/feature-libs/asm/customer-360/assets/translations/it/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import asmCustomer360 from './asmCustomer360.json'; +export const it = { + asmCustomer360, +}; diff --git a/feature-libs/asm/customer-360/assets/translations/ja/index.ts b/feature-libs/asm/customer-360/assets/translations/ja/index.ts index b19d126d90c..f553a95f31f 100644 --- a/feature-libs/asm/customer-360/assets/translations/ja/index.ts +++ b/feature-libs/asm/customer-360/assets/translations/ja/index.ts @@ -5,7 +5,6 @@ */ import asmCustomer360 from './asmCustomer360.json'; - export const ja = { asmCustomer360, }; diff --git a/feature-libs/asm/customer-360/assets/translations/ko/index.ts b/feature-libs/asm/customer-360/assets/translations/ko/index.ts new file mode 100644 index 00000000000..4ad3b3c9d7f --- /dev/null +++ b/feature-libs/asm/customer-360/assets/translations/ko/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import asmCustomer360 from './asmCustomer360.json'; +export const ko = { + asmCustomer360, +}; diff --git a/feature-libs/asm/customer-360/assets/translations/pl/index.ts b/feature-libs/asm/customer-360/assets/translations/pl/index.ts new file mode 100644 index 00000000000..227665523c0 --- /dev/null +++ b/feature-libs/asm/customer-360/assets/translations/pl/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import asmCustomer360 from './asmCustomer360.json'; +export const pl = { + asmCustomer360, +}; diff --git a/feature-libs/asm/customer-360/assets/translations/pt/index.ts b/feature-libs/asm/customer-360/assets/translations/pt/index.ts new file mode 100644 index 00000000000..b40c27216a8 --- /dev/null +++ b/feature-libs/asm/customer-360/assets/translations/pt/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import asmCustomer360 from './asmCustomer360.json'; +export const pt = { + asmCustomer360, +}; diff --git a/feature-libs/asm/customer-360/assets/translations/ru/index.ts b/feature-libs/asm/customer-360/assets/translations/ru/index.ts new file mode 100644 index 00000000000..6d8a7d2cc1b --- /dev/null +++ b/feature-libs/asm/customer-360/assets/translations/ru/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import asmCustomer360 from './asmCustomer360.json'; +export const ru = { + asmCustomer360, +}; diff --git a/feature-libs/asm/customer-360/assets/translations/translations.ts b/feature-libs/asm/customer-360/assets/translations/translations.ts index a07d6e93b83..e016adcfd1f 100644 --- a/feature-libs/asm/customer-360/assets/translations/translations.ts +++ b/feature-libs/asm/customer-360/assets/translations/translations.ts @@ -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 asmCustomer360Translations: TranslationResources = { +/** + * @deprecated use **specific language** translations (suffixed with language code) instead, + * like in the following example: + * ```diff + * i18n: { + * - resources: asmCustomer360Translations + * + resources: { en: asmCustomer360TranslationsEn } + * } + * ``` + */ +export const asmCustomer360Translations = { en, - ja, - de, - zh, }; -export const asmCustomer360TranslationChunksConfig: TranslationChunksConfig = { - asmCustomer360: ['asmCustomer360'], -}; +export { cs as asmCustomer360TranslationsCs } from './cs/index'; +export { de as asmCustomer360TranslationsDe } from './de/index'; +export { en as asmCustomer360TranslationsEn } from './en/index'; +export { es as asmCustomer360TranslationsEs } from './es/index'; +export { es_CO as asmCustomer360TranslationsEs_CO } from './es_CO/index'; +export { fr as asmCustomer360TranslationsFr } from './fr/index'; +export { hi as asmCustomer360TranslationsHi } from './hi/index'; +export { hu as asmCustomer360TranslationsHu } from './hu/index'; +export { id as asmCustomer360TranslationsId } from './id/index'; +export { it as asmCustomer360TranslationsIt } from './it/index'; +export { ja as asmCustomer360TranslationsJa } from './ja/index'; +export { ko as asmCustomer360TranslationsKo } from './ko/index'; +export { pl as asmCustomer360TranslationsPl } from './pl/index'; +export { pt as asmCustomer360TranslationsPt } from './pt/index'; +export { ru as asmCustomer360TranslationsRu } from './ru/index'; +export { zh as asmCustomer360TranslationsZh } from './zh/index'; +export { zh_TW as asmCustomer360TranslationsZh_TW } from './zh_TW/index'; diff --git a/feature-libs/asm/customer-360/assets/translations/zh/index.ts b/feature-libs/asm/customer-360/assets/translations/zh/index.ts index 665ee2e2c6b..3daccdb0f37 100644 --- a/feature-libs/asm/customer-360/assets/translations/zh/index.ts +++ b/feature-libs/asm/customer-360/assets/translations/zh/index.ts @@ -5,7 +5,6 @@ */ import asmCustomer360 from './asmCustomer360.json'; - export const zh = { asmCustomer360, }; diff --git a/feature-libs/asm/customer-360/assets/translations/zh_TW/index.ts b/feature-libs/asm/customer-360/assets/translations/zh_TW/index.ts new file mode 100644 index 00000000000..7b3819b4139 --- /dev/null +++ b/feature-libs/asm/customer-360/assets/translations/zh_TW/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import asmCustomer360 from './asmCustomer360.json'; +export const zh_TW = { + asmCustomer360, +}; diff --git a/feature-libs/cart/base/assets/translations/cs/index.ts b/feature-libs/cart/base/assets/translations/cs/index.ts new file mode 100644 index 00000000000..49ee9cb223c --- /dev/null +++ b/feature-libs/cart/base/assets/translations/cs/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import cart from './cart.json'; +export const cs = { + cart, +}; diff --git a/feature-libs/cart/base/assets/translations/de/index.ts b/feature-libs/cart/base/assets/translations/de/index.ts index ff2c00438ef..cbd2e25b124 100644 --- a/feature-libs/cart/base/assets/translations/de/index.ts +++ b/feature-libs/cart/base/assets/translations/de/index.ts @@ -5,7 +5,6 @@ */ import cart from './cart.json'; - export const de = { cart, }; diff --git a/feature-libs/cart/base/assets/translations/en/index.ts b/feature-libs/cart/base/assets/translations/en/index.ts index 565d776ab38..d9db3889e5b 100644 --- a/feature-libs/cart/base/assets/translations/en/index.ts +++ b/feature-libs/cart/base/assets/translations/en/index.ts @@ -5,7 +5,6 @@ */ import cart from './cart.json'; - export const en = { cart, }; diff --git a/feature-libs/cart/base/assets/translations/es/index.ts b/feature-libs/cart/base/assets/translations/es/index.ts new file mode 100644 index 00000000000..e60845be336 --- /dev/null +++ b/feature-libs/cart/base/assets/translations/es/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import cart from './cart.json'; +export const es = { + cart, +}; diff --git a/feature-libs/cart/base/assets/translations/es_CO/index.ts b/feature-libs/cart/base/assets/translations/es_CO/index.ts new file mode 100644 index 00000000000..d2626e2b9a7 --- /dev/null +++ b/feature-libs/cart/base/assets/translations/es_CO/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import cart from './cart.json'; +export const es_CO = { + cart, +}; diff --git a/feature-libs/cart/base/assets/translations/fr/index.ts b/feature-libs/cart/base/assets/translations/fr/index.ts new file mode 100644 index 00000000000..8e0a6ddc5bb --- /dev/null +++ b/feature-libs/cart/base/assets/translations/fr/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import cart from './cart.json'; +export const fr = { + cart, +}; diff --git a/feature-libs/cart/base/assets/translations/hi/index.ts b/feature-libs/cart/base/assets/translations/hi/index.ts new file mode 100644 index 00000000000..1e29c1da4e2 --- /dev/null +++ b/feature-libs/cart/base/assets/translations/hi/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import cart from './cart.json'; +export const hi = { + cart, +}; diff --git a/feature-libs/cart/base/assets/translations/hu/index.ts b/feature-libs/cart/base/assets/translations/hu/index.ts new file mode 100644 index 00000000000..067032f4981 --- /dev/null +++ b/feature-libs/cart/base/assets/translations/hu/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import cart from './cart.json'; +export const hu = { + cart, +}; diff --git a/feature-libs/cart/base/assets/translations/id/index.ts b/feature-libs/cart/base/assets/translations/id/index.ts new file mode 100644 index 00000000000..fb99c62b6c6 --- /dev/null +++ b/feature-libs/cart/base/assets/translations/id/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import cart from './cart.json'; +export const id = { + cart, +}; diff --git a/feature-libs/cart/base/assets/translations/it/index.ts b/feature-libs/cart/base/assets/translations/it/index.ts new file mode 100644 index 00000000000..d905b3747f3 --- /dev/null +++ b/feature-libs/cart/base/assets/translations/it/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import cart from './cart.json'; +export const it = { + cart, +}; diff --git a/feature-libs/cart/base/assets/translations/ja/index.ts b/feature-libs/cart/base/assets/translations/ja/index.ts index bd27bbb4e5b..06f34164972 100644 --- a/feature-libs/cart/base/assets/translations/ja/index.ts +++ b/feature-libs/cart/base/assets/translations/ja/index.ts @@ -5,7 +5,6 @@ */ import cart from './cart.json'; - export const ja = { cart, }; diff --git a/feature-libs/cart/base/assets/translations/ko/index.ts b/feature-libs/cart/base/assets/translations/ko/index.ts new file mode 100644 index 00000000000..3a3e31ed6ff --- /dev/null +++ b/feature-libs/cart/base/assets/translations/ko/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import cart from './cart.json'; +export const ko = { + cart, +}; diff --git a/feature-libs/cart/base/assets/translations/pl/index.ts b/feature-libs/cart/base/assets/translations/pl/index.ts new file mode 100644 index 00000000000..d2062d1e832 --- /dev/null +++ b/feature-libs/cart/base/assets/translations/pl/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import cart from './cart.json'; +export const pl = { + cart, +}; diff --git a/feature-libs/cart/base/assets/translations/pt/index.ts b/feature-libs/cart/base/assets/translations/pt/index.ts new file mode 100644 index 00000000000..794ef414884 --- /dev/null +++ b/feature-libs/cart/base/assets/translations/pt/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import cart from './cart.json'; +export const pt = { + cart, +}; diff --git a/feature-libs/cart/base/assets/translations/ru/index.ts b/feature-libs/cart/base/assets/translations/ru/index.ts new file mode 100644 index 00000000000..2e32ed74278 --- /dev/null +++ b/feature-libs/cart/base/assets/translations/ru/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import cart from './cart.json'; +export const ru = { + cart, +}; diff --git a/feature-libs/cart/base/assets/translations/translations.ts b/feature-libs/cart/base/assets/translations/translations.ts index 77efda322a9..4d511244641 100644 --- a/feature-libs/cart/base/assets/translations/translations.ts +++ b/feature-libs/cart/base/assets/translations/translations.ts @@ -4,27 +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 cartBaseTranslations: TranslationResources = { +/** + * @deprecated use **specific language** translations (suffixed with language code) instead, + * like in the following example: + * ```diff + * i18n: { + * - resources: cartBaseTranslations + * + resources: { en: cartBaseTranslationsEn } + * } + * ``` + */ +export const cartBaseTranslations = { en, - ja, - de, - zh, }; -export const cartBaseTranslationChunksConfig: TranslationChunksConfig = { - cart: [ - 'cartDetails', - 'cartItems', - 'orderCost', - 'voucher', - 'saveForLaterItems', - 'clearCart', - 'validation', - ], -}; +export { cs as cartBaseTranslationsCs } from './cs/index'; +export { de as cartBaseTranslationsDe } from './de/index'; +export { en as cartBaseTranslationsEn } from './en/index'; +export { es as cartBaseTranslationsEs } from './es/index'; +export { es_CO as cartBaseTranslationsEs_CO } from './es_CO/index'; +export { fr as cartBaseTranslationsFr } from './fr/index'; +export { hi as cartBaseTranslationsHi } from './hi/index'; +export { hu as cartBaseTranslationsHu } from './hu/index'; +export { id as cartBaseTranslationsId } from './id/index'; +export { it as cartBaseTranslationsIt } from './it/index'; +export { ja as cartBaseTranslationsJa } from './ja/index'; +export { ko as cartBaseTranslationsKo } from './ko/index'; +export { pl as cartBaseTranslationsPl } from './pl/index'; +export { pt as cartBaseTranslationsPt } from './pt/index'; +export { ru as cartBaseTranslationsRu } from './ru/index'; +export { zh as cartBaseTranslationsZh } from './zh/index'; +export { zh_TW as cartBaseTranslationsZh_TW } from './zh_TW/index'; diff --git a/feature-libs/cart/base/assets/translations/zh/index.ts b/feature-libs/cart/base/assets/translations/zh/index.ts index 51405e28e47..183cf3db3f9 100644 --- a/feature-libs/cart/base/assets/translations/zh/index.ts +++ b/feature-libs/cart/base/assets/translations/zh/index.ts @@ -5,7 +5,6 @@ */ import cart from './cart.json'; - export const zh = { cart, }; diff --git a/feature-libs/cart/base/assets/translations/zh_TW/index.ts b/feature-libs/cart/base/assets/translations/zh_TW/index.ts new file mode 100644 index 00000000000..0f676da17ab --- /dev/null +++ b/feature-libs/cart/base/assets/translations/zh_TW/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import cart from './cart.json'; +export const zh_TW = { + cart, +}; diff --git a/feature-libs/cart/import-export/assets/translations/cs/index.ts b/feature-libs/cart/import-export/assets/translations/cs/index.ts new file mode 100644 index 00000000000..c89c971bc60 --- /dev/null +++ b/feature-libs/cart/import-export/assets/translations/cs/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import importExport from './importExport.json'; +export const cs = { + importExport, +}; diff --git a/feature-libs/cart/import-export/assets/translations/de/index.ts b/feature-libs/cart/import-export/assets/translations/de/index.ts index c7d9f6a3df9..33990417f7f 100644 --- a/feature-libs/cart/import-export/assets/translations/de/index.ts +++ b/feature-libs/cart/import-export/assets/translations/de/index.ts @@ -5,7 +5,6 @@ */ import importExport from './importExport.json'; - export const de = { importExport, }; diff --git a/feature-libs/cart/import-export/assets/translations/en/index.ts b/feature-libs/cart/import-export/assets/translations/en/index.ts index 7ed3ef26eca..48dea56db42 100644 --- a/feature-libs/cart/import-export/assets/translations/en/index.ts +++ b/feature-libs/cart/import-export/assets/translations/en/index.ts @@ -5,7 +5,6 @@ */ import importExport from './importExport.json'; - export const en = { importExport, }; diff --git a/feature-libs/cart/import-export/assets/translations/es/index.ts b/feature-libs/cart/import-export/assets/translations/es/index.ts new file mode 100644 index 00000000000..e8931b58313 --- /dev/null +++ b/feature-libs/cart/import-export/assets/translations/es/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import importExport from './importExport.json'; +export const es = { + importExport, +}; diff --git a/feature-libs/cart/import-export/assets/translations/es_CO/index.ts b/feature-libs/cart/import-export/assets/translations/es_CO/index.ts new file mode 100644 index 00000000000..a73944186f0 --- /dev/null +++ b/feature-libs/cart/import-export/assets/translations/es_CO/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import importExport from './importExport.json'; +export const es_CO = { + importExport, +}; diff --git a/feature-libs/cart/import-export/assets/translations/fr/index.ts b/feature-libs/cart/import-export/assets/translations/fr/index.ts new file mode 100644 index 00000000000..b71ce8c8ed2 --- /dev/null +++ b/feature-libs/cart/import-export/assets/translations/fr/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import importExport from './importExport.json'; +export const fr = { + importExport, +}; diff --git a/feature-libs/cart/import-export/assets/translations/hi/index.ts b/feature-libs/cart/import-export/assets/translations/hi/index.ts new file mode 100644 index 00000000000..dd418f84574 --- /dev/null +++ b/feature-libs/cart/import-export/assets/translations/hi/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import importExport from './importExport.json'; +export const hi = { + importExport, +}; diff --git a/feature-libs/cart/import-export/assets/translations/hu/index.ts b/feature-libs/cart/import-export/assets/translations/hu/index.ts new file mode 100644 index 00000000000..cf17219bb0f --- /dev/null +++ b/feature-libs/cart/import-export/assets/translations/hu/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import importExport from './importExport.json'; +export const hu = { + importExport, +}; diff --git a/feature-libs/cart/import-export/assets/translations/id/index.ts b/feature-libs/cart/import-export/assets/translations/id/index.ts new file mode 100644 index 00000000000..c311b4f5e43 --- /dev/null +++ b/feature-libs/cart/import-export/assets/translations/id/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import importExport from './importExport.json'; +export const id = { + importExport, +}; diff --git a/feature-libs/cart/import-export/assets/translations/it/index.ts b/feature-libs/cart/import-export/assets/translations/it/index.ts new file mode 100644 index 00000000000..913d245474c --- /dev/null +++ b/feature-libs/cart/import-export/assets/translations/it/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import importExport from './importExport.json'; +export const it = { + importExport, +}; diff --git a/feature-libs/cart/import-export/assets/translations/ja/index.ts b/feature-libs/cart/import-export/assets/translations/ja/index.ts index 3bd3888d22e..97a8e29f8a6 100644 --- a/feature-libs/cart/import-export/assets/translations/ja/index.ts +++ b/feature-libs/cart/import-export/assets/translations/ja/index.ts @@ -5,7 +5,6 @@ */ import importExport from './importExport.json'; - export const ja = { importExport, }; diff --git a/feature-libs/cart/import-export/assets/translations/ko/index.ts b/feature-libs/cart/import-export/assets/translations/ko/index.ts new file mode 100644 index 00000000000..6653a1e3e7a --- /dev/null +++ b/feature-libs/cart/import-export/assets/translations/ko/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import importExport from './importExport.json'; +export const ko = { + importExport, +}; diff --git a/feature-libs/cart/import-export/assets/translations/pl/index.ts b/feature-libs/cart/import-export/assets/translations/pl/index.ts new file mode 100644 index 00000000000..8aa8dfa0a69 --- /dev/null +++ b/feature-libs/cart/import-export/assets/translations/pl/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import importExport from './importExport.json'; +export const pl = { + importExport, +}; diff --git a/feature-libs/cart/import-export/assets/translations/pt/index.ts b/feature-libs/cart/import-export/assets/translations/pt/index.ts new file mode 100644 index 00000000000..6ae910f02b9 --- /dev/null +++ b/feature-libs/cart/import-export/assets/translations/pt/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import importExport from './importExport.json'; +export const pt = { + importExport, +}; diff --git a/feature-libs/cart/import-export/assets/translations/ru/index.ts b/feature-libs/cart/import-export/assets/translations/ru/index.ts new file mode 100644 index 00000000000..041fed598ed --- /dev/null +++ b/feature-libs/cart/import-export/assets/translations/ru/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import importExport from './importExport.json'; +export const ru = { + importExport, +}; diff --git a/feature-libs/cart/import-export/assets/translations/translations.ts b/feature-libs/cart/import-export/assets/translations/translations.ts index e0f3aebfa89..788bf0e198d 100644 --- a/feature-libs/cart/import-export/assets/translations/translations.ts +++ b/feature-libs/cart/import-export/assets/translations/translations.ts @@ -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 importExportTranslations: TranslationResources = { +/** + * @deprecated use **specific language** translations (suffixed with language code) instead, + * like in the following example: + * ```diff + * i18n: { + * - resources: importExportTranslations + * + resources: { en: importExportTranslationsEn } + * } + * ``` + */ +export const importExportTranslations = { en, - ja, - de, - zh, }; -export const importExportTranslationChunksConfig: TranslationChunksConfig = { - importExport: ['exportEntries', 'importEntries', 'importEntriesDialog'], -}; +export { cs as importExportTranslationsCs } from './cs/index'; +export { de as importExportTranslationsDe } from './de/index'; +export { en as importExportTranslationsEn } from './en/index'; +export { es as importExportTranslationsEs } from './es/index'; +export { es_CO as importExportTranslationsEs_CO } from './es_CO/index'; +export { fr as importExportTranslationsFr } from './fr/index'; +export { hi as importExportTranslationsHi } from './hi/index'; +export { hu as importExportTranslationsHu } from './hu/index'; +export { id as importExportTranslationsId } from './id/index'; +export { it as importExportTranslationsIt } from './it/index'; +export { ja as importExportTranslationsJa } from './ja/index'; +export { ko as importExportTranslationsKo } from './ko/index'; +export { pl as importExportTranslationsPl } from './pl/index'; +export { pt as importExportTranslationsPt } from './pt/index'; +export { ru as importExportTranslationsRu } from './ru/index'; +export { zh as importExportTranslationsZh } from './zh/index'; +export { zh_TW as importExportTranslationsZh_TW } from './zh_TW/index'; diff --git a/feature-libs/cart/import-export/assets/translations/zh/index.ts b/feature-libs/cart/import-export/assets/translations/zh/index.ts index 873e7b0e7e8..79f362d5d06 100644 --- a/feature-libs/cart/import-export/assets/translations/zh/index.ts +++ b/feature-libs/cart/import-export/assets/translations/zh/index.ts @@ -5,7 +5,6 @@ */ import importExport from './importExport.json'; - export const zh = { importExport, }; diff --git a/feature-libs/cart/import-export/assets/translations/zh_TW/index.ts b/feature-libs/cart/import-export/assets/translations/zh_TW/index.ts new file mode 100644 index 00000000000..c32e68d48c4 --- /dev/null +++ b/feature-libs/cart/import-export/assets/translations/zh_TW/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import importExport from './importExport.json'; +export const zh_TW = { + importExport, +}; diff --git a/feature-libs/cart/quick-order/assets/translations/cs/index.ts b/feature-libs/cart/quick-order/assets/translations/cs/index.ts new file mode 100644 index 00000000000..43e2aaf6f76 --- /dev/null +++ b/feature-libs/cart/quick-order/assets/translations/cs/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import quickOrder from './quickOrder.json'; +export const cs = { + quickOrder, +}; diff --git a/feature-libs/cart/quick-order/assets/translations/de/index.ts b/feature-libs/cart/quick-order/assets/translations/de/index.ts index b7efb6f65c0..36d9afcd2fc 100644 --- a/feature-libs/cart/quick-order/assets/translations/de/index.ts +++ b/feature-libs/cart/quick-order/assets/translations/de/index.ts @@ -5,7 +5,6 @@ */ import quickOrder from './quickOrder.json'; - export const de = { quickOrder, }; diff --git a/feature-libs/cart/quick-order/assets/translations/en/index.ts b/feature-libs/cart/quick-order/assets/translations/en/index.ts index 737a59fc8a3..e0d38828268 100644 --- a/feature-libs/cart/quick-order/assets/translations/en/index.ts +++ b/feature-libs/cart/quick-order/assets/translations/en/index.ts @@ -5,7 +5,6 @@ */ import quickOrder from './quickOrder.json'; - export const en = { quickOrder, }; diff --git a/feature-libs/cart/quick-order/assets/translations/es/index.ts b/feature-libs/cart/quick-order/assets/translations/es/index.ts new file mode 100644 index 00000000000..ab402edab81 --- /dev/null +++ b/feature-libs/cart/quick-order/assets/translations/es/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import quickOrder from './quickOrder.json'; +export const es = { + quickOrder, +}; diff --git a/feature-libs/cart/quick-order/assets/translations/es_CO/index.ts b/feature-libs/cart/quick-order/assets/translations/es_CO/index.ts new file mode 100644 index 00000000000..66e22189795 --- /dev/null +++ b/feature-libs/cart/quick-order/assets/translations/es_CO/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import quickOrder from './quickOrder.json'; +export const es_CO = { + quickOrder, +}; diff --git a/feature-libs/cart/quick-order/assets/translations/fr/index.ts b/feature-libs/cart/quick-order/assets/translations/fr/index.ts new file mode 100644 index 00000000000..c4166a72b9d --- /dev/null +++ b/feature-libs/cart/quick-order/assets/translations/fr/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import quickOrder from './quickOrder.json'; +export const fr = { + quickOrder, +}; diff --git a/feature-libs/cart/quick-order/assets/translations/hi/index.ts b/feature-libs/cart/quick-order/assets/translations/hi/index.ts new file mode 100644 index 00000000000..9f57bf5beb0 --- /dev/null +++ b/feature-libs/cart/quick-order/assets/translations/hi/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import quickOrder from './quickOrder.json'; +export const hi = { + quickOrder, +}; diff --git a/feature-libs/cart/quick-order/assets/translations/hu/index.ts b/feature-libs/cart/quick-order/assets/translations/hu/index.ts new file mode 100644 index 00000000000..41bb1153250 --- /dev/null +++ b/feature-libs/cart/quick-order/assets/translations/hu/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import quickOrder from './quickOrder.json'; +export const hu = { + quickOrder, +}; diff --git a/feature-libs/cart/quick-order/assets/translations/id/index.ts b/feature-libs/cart/quick-order/assets/translations/id/index.ts new file mode 100644 index 00000000000..453df5b267f --- /dev/null +++ b/feature-libs/cart/quick-order/assets/translations/id/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import quickOrder from './quickOrder.json'; +export const id = { + quickOrder, +}; diff --git a/feature-libs/cart/quick-order/assets/translations/it/index.ts b/feature-libs/cart/quick-order/assets/translations/it/index.ts new file mode 100644 index 00000000000..c6faed2d097 --- /dev/null +++ b/feature-libs/cart/quick-order/assets/translations/it/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import quickOrder from './quickOrder.json'; +export const it = { + quickOrder, +}; diff --git a/feature-libs/cart/quick-order/assets/translations/ja/index.ts b/feature-libs/cart/quick-order/assets/translations/ja/index.ts index 49404251dd6..232b793e14a 100644 --- a/feature-libs/cart/quick-order/assets/translations/ja/index.ts +++ b/feature-libs/cart/quick-order/assets/translations/ja/index.ts @@ -5,7 +5,6 @@ */ import quickOrder from './quickOrder.json'; - export const ja = { quickOrder, }; diff --git a/feature-libs/cart/quick-order/assets/translations/ko/index.ts b/feature-libs/cart/quick-order/assets/translations/ko/index.ts new file mode 100644 index 00000000000..06b394a36d1 --- /dev/null +++ b/feature-libs/cart/quick-order/assets/translations/ko/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import quickOrder from './quickOrder.json'; +export const ko = { + quickOrder, +}; diff --git a/feature-libs/cart/quick-order/assets/translations/pl/index.ts b/feature-libs/cart/quick-order/assets/translations/pl/index.ts new file mode 100644 index 00000000000..1fb80540b0b --- /dev/null +++ b/feature-libs/cart/quick-order/assets/translations/pl/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import quickOrder from './quickOrder.json'; +export const pl = { + quickOrder, +}; diff --git a/feature-libs/cart/quick-order/assets/translations/pt/index.ts b/feature-libs/cart/quick-order/assets/translations/pt/index.ts new file mode 100644 index 00000000000..db82608b501 --- /dev/null +++ b/feature-libs/cart/quick-order/assets/translations/pt/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import quickOrder from './quickOrder.json'; +export const pt = { + quickOrder, +}; diff --git a/feature-libs/cart/quick-order/assets/translations/ru/index.ts b/feature-libs/cart/quick-order/assets/translations/ru/index.ts new file mode 100644 index 00000000000..6ecec68c690 --- /dev/null +++ b/feature-libs/cart/quick-order/assets/translations/ru/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import quickOrder from './quickOrder.json'; +export const ru = { + quickOrder, +}; diff --git a/feature-libs/cart/quick-order/assets/translations/translations.ts b/feature-libs/cart/quick-order/assets/translations/translations.ts index 94a83ff902c..3cad014e3bc 100644 --- a/feature-libs/cart/quick-order/assets/translations/translations.ts +++ b/feature-libs/cart/quick-order/assets/translations/translations.ts @@ -4,25 +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 quickOrderTranslations: TranslationResources = { +/** + * @deprecated use **specific language** translations (suffixed with language code) instead, + * like in the following example: + * ```diff + * i18n: { + * - resources: quickOrderTranslations + * + resources: { en: quickOrderTranslationsEn } + * } + * ``` + */ +export const quickOrderTranslations = { en, - ja, - de, - zh, }; -// expose all translation chunk mapping for quickOrder feature -export const quickOrderTranslationChunksConfig: TranslationChunksConfig = { - quickOrder: [ - 'quickOrderCartForm', - 'quickOrderForm', - 'quickOrderList', - 'quickOrderTable', - ], -}; +export { cs as quickOrderTranslationsCs } from './cs/index'; +export { de as quickOrderTranslationsDe } from './de/index'; +export { en as quickOrderTranslationsEn } from './en/index'; +export { es as quickOrderTranslationsEs } from './es/index'; +export { es_CO as quickOrderTranslationsEs_CO } from './es_CO/index'; +export { fr as quickOrderTranslationsFr } from './fr/index'; +export { hi as quickOrderTranslationsHi } from './hi/index'; +export { hu as quickOrderTranslationsHu } from './hu/index'; +export { id as quickOrderTranslationsId } from './id/index'; +export { it as quickOrderTranslationsIt } from './it/index'; +export { ja as quickOrderTranslationsJa } from './ja/index'; +export { ko as quickOrderTranslationsKo } from './ko/index'; +export { pl as quickOrderTranslationsPl } from './pl/index'; +export { pt as quickOrderTranslationsPt } from './pt/index'; +export { ru as quickOrderTranslationsRu } from './ru/index'; +export { zh as quickOrderTranslationsZh } from './zh/index'; +export { zh_TW as quickOrderTranslationsZh_TW } from './zh_TW/index'; diff --git a/feature-libs/cart/quick-order/assets/translations/zh/index.ts b/feature-libs/cart/quick-order/assets/translations/zh/index.ts index 6e9eb56b762..bcfeb895b18 100644 --- a/feature-libs/cart/quick-order/assets/translations/zh/index.ts +++ b/feature-libs/cart/quick-order/assets/translations/zh/index.ts @@ -5,7 +5,6 @@ */ import quickOrder from './quickOrder.json'; - export const zh = { quickOrder, }; diff --git a/feature-libs/cart/quick-order/assets/translations/zh_TW/index.ts b/feature-libs/cart/quick-order/assets/translations/zh_TW/index.ts new file mode 100644 index 00000000000..3d8b3cf34f8 --- /dev/null +++ b/feature-libs/cart/quick-order/assets/translations/zh_TW/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import quickOrder from './quickOrder.json'; +export const zh_TW = { + quickOrder, +}; diff --git a/feature-libs/cart/saved-cart/assets/translations/cs/index.ts b/feature-libs/cart/saved-cart/assets/translations/cs/index.ts new file mode 100644 index 00000000000..c0de3b83346 --- /dev/null +++ b/feature-libs/cart/saved-cart/assets/translations/cs/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import savedCart from './savedCart.json'; +export const cs = { + savedCart, +}; diff --git a/feature-libs/cart/saved-cart/assets/translations/de/index.ts b/feature-libs/cart/saved-cart/assets/translations/de/index.ts index be45f3fb448..e3a1f7898d8 100644 --- a/feature-libs/cart/saved-cart/assets/translations/de/index.ts +++ b/feature-libs/cart/saved-cart/assets/translations/de/index.ts @@ -5,7 +5,6 @@ */ import savedCart from './savedCart.json'; - export const de = { savedCart, }; diff --git a/feature-libs/cart/saved-cart/assets/translations/en/index.ts b/feature-libs/cart/saved-cart/assets/translations/en/index.ts index 04af1be9405..9925e052aca 100644 --- a/feature-libs/cart/saved-cart/assets/translations/en/index.ts +++ b/feature-libs/cart/saved-cart/assets/translations/en/index.ts @@ -5,7 +5,6 @@ */ import savedCart from './savedCart.json'; - export const en = { savedCart, }; diff --git a/feature-libs/cart/saved-cart/assets/translations/es/index.ts b/feature-libs/cart/saved-cart/assets/translations/es/index.ts new file mode 100644 index 00000000000..73a3521fbba --- /dev/null +++ b/feature-libs/cart/saved-cart/assets/translations/es/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import savedCart from './savedCart.json'; +export const es = { + savedCart, +}; diff --git a/feature-libs/cart/saved-cart/assets/translations/es_CO/index.ts b/feature-libs/cart/saved-cart/assets/translations/es_CO/index.ts new file mode 100644 index 00000000000..ce2bd685e20 --- /dev/null +++ b/feature-libs/cart/saved-cart/assets/translations/es_CO/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import savedCart from './savedCart.json'; +export const es_CO = { + savedCart, +}; diff --git a/feature-libs/cart/saved-cart/assets/translations/fr/index.ts b/feature-libs/cart/saved-cart/assets/translations/fr/index.ts new file mode 100644 index 00000000000..5c3b3fc8214 --- /dev/null +++ b/feature-libs/cart/saved-cart/assets/translations/fr/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import savedCart from './savedCart.json'; +export const fr = { + savedCart, +}; diff --git a/feature-libs/cart/saved-cart/assets/translations/hi/index.ts b/feature-libs/cart/saved-cart/assets/translations/hi/index.ts new file mode 100644 index 00000000000..97b29283a8a --- /dev/null +++ b/feature-libs/cart/saved-cart/assets/translations/hi/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import savedCart from './savedCart.json'; +export const hi = { + savedCart, +}; diff --git a/feature-libs/cart/saved-cart/assets/translations/hu/index.ts b/feature-libs/cart/saved-cart/assets/translations/hu/index.ts new file mode 100644 index 00000000000..cbc0ccea6a0 --- /dev/null +++ b/feature-libs/cart/saved-cart/assets/translations/hu/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import savedCart from './savedCart.json'; +export const hu = { + savedCart, +}; diff --git a/feature-libs/cart/saved-cart/assets/translations/id/index.ts b/feature-libs/cart/saved-cart/assets/translations/id/index.ts new file mode 100644 index 00000000000..10abb9cb318 --- /dev/null +++ b/feature-libs/cart/saved-cart/assets/translations/id/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import savedCart from './savedCart.json'; +export const id = { + savedCart, +}; diff --git a/feature-libs/cart/saved-cart/assets/translations/it/index.ts b/feature-libs/cart/saved-cart/assets/translations/it/index.ts new file mode 100644 index 00000000000..136a371c7e8 --- /dev/null +++ b/feature-libs/cart/saved-cart/assets/translations/it/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import savedCart from './savedCart.json'; +export const it = { + savedCart, +}; diff --git a/feature-libs/cart/saved-cart/assets/translations/ja/index.ts b/feature-libs/cart/saved-cart/assets/translations/ja/index.ts index 08ffce4a449..35354c7402e 100644 --- a/feature-libs/cart/saved-cart/assets/translations/ja/index.ts +++ b/feature-libs/cart/saved-cart/assets/translations/ja/index.ts @@ -5,7 +5,6 @@ */ import savedCart from './savedCart.json'; - export const ja = { savedCart, }; diff --git a/feature-libs/cart/saved-cart/assets/translations/ko/index.ts b/feature-libs/cart/saved-cart/assets/translations/ko/index.ts new file mode 100644 index 00000000000..e22df0e7e2e --- /dev/null +++ b/feature-libs/cart/saved-cart/assets/translations/ko/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import savedCart from './savedCart.json'; +export const ko = { + savedCart, +}; diff --git a/feature-libs/cart/saved-cart/assets/translations/pl/index.ts b/feature-libs/cart/saved-cart/assets/translations/pl/index.ts new file mode 100644 index 00000000000..5f0e9e6f591 --- /dev/null +++ b/feature-libs/cart/saved-cart/assets/translations/pl/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import savedCart from './savedCart.json'; +export const pl = { + savedCart, +}; diff --git a/feature-libs/cart/saved-cart/assets/translations/pt/index.ts b/feature-libs/cart/saved-cart/assets/translations/pt/index.ts new file mode 100644 index 00000000000..5043678953b --- /dev/null +++ b/feature-libs/cart/saved-cart/assets/translations/pt/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import savedCart from './savedCart.json'; +export const pt = { + savedCart, +}; diff --git a/feature-libs/cart/saved-cart/assets/translations/ru/index.ts b/feature-libs/cart/saved-cart/assets/translations/ru/index.ts new file mode 100644 index 00000000000..af7eb261ca1 --- /dev/null +++ b/feature-libs/cart/saved-cart/assets/translations/ru/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import savedCart from './savedCart.json'; +export const ru = { + savedCart, +}; diff --git a/feature-libs/cart/saved-cart/assets/translations/translations.ts b/feature-libs/cart/saved-cart/assets/translations/translations.ts index 555dc4b28c9..ca2a89d918b 100644 --- a/feature-libs/cart/saved-cart/assets/translations/translations.ts +++ b/feature-libs/cart/saved-cart/assets/translations/translations.ts @@ -4,26 +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 savedCartTranslations: TranslationResources = { +/** + * @deprecated use **specific language** translations (suffixed with language code) instead, + * like in the following example: + * ```diff + * i18n: { + * - resources: savedCartTranslations + * + resources: { en: savedCartTranslationsEn } + * } + * ``` + */ +export const savedCartTranslations = { en, - ja, - de, - zh, }; -// expose all translation chunk mapping for savedCart feature -export const savedCartTranslationChunksConfig: TranslationChunksConfig = { - savedCart: [ - 'savedCartDetails', - 'savedCartList', - 'savedCartCartPage', - 'savedCartDialog', - 'addToSavedCart', - ], -}; +export { cs as savedCartTranslationsCs } from './cs/index'; +export { de as savedCartTranslationsDe } from './de/index'; +export { en as savedCartTranslationsEn } from './en/index'; +export { es as savedCartTranslationsEs } from './es/index'; +export { es_CO as savedCartTranslationsEs_CO } from './es_CO/index'; +export { fr as savedCartTranslationsFr } from './fr/index'; +export { hi as savedCartTranslationsHi } from './hi/index'; +export { hu as savedCartTranslationsHu } from './hu/index'; +export { id as savedCartTranslationsId } from './id/index'; +export { it as savedCartTranslationsIt } from './it/index'; +export { ja as savedCartTranslationsJa } from './ja/index'; +export { ko as savedCartTranslationsKo } from './ko/index'; +export { pl as savedCartTranslationsPl } from './pl/index'; +export { pt as savedCartTranslationsPt } from './pt/index'; +export { ru as savedCartTranslationsRu } from './ru/index'; +export { zh as savedCartTranslationsZh } from './zh/index'; +export { zh_TW as savedCartTranslationsZh_TW } from './zh_TW/index'; diff --git a/feature-libs/cart/saved-cart/assets/translations/zh/index.ts b/feature-libs/cart/saved-cart/assets/translations/zh/index.ts index c12b29f54a6..8f6cd65fecb 100644 --- a/feature-libs/cart/saved-cart/assets/translations/zh/index.ts +++ b/feature-libs/cart/saved-cart/assets/translations/zh/index.ts @@ -5,7 +5,6 @@ */ import savedCart from './savedCart.json'; - export const zh = { savedCart, }; diff --git a/feature-libs/cart/saved-cart/assets/translations/zh_TW/index.ts b/feature-libs/cart/saved-cart/assets/translations/zh_TW/index.ts new file mode 100644 index 00000000000..2612e414b02 --- /dev/null +++ b/feature-libs/cart/saved-cart/assets/translations/zh_TW/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import savedCart from './savedCart.json'; +export const zh_TW = { + savedCart, +}; diff --git a/feature-libs/cart/wish-list/assets/translations/cs/index.ts b/feature-libs/cart/wish-list/assets/translations/cs/index.ts new file mode 100644 index 00000000000..4a237493470 --- /dev/null +++ b/feature-libs/cart/wish-list/assets/translations/cs/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import wishlist from './wishlist.json'; +export const cs = { + wishlist, +}; diff --git a/feature-libs/cart/wish-list/assets/translations/de/index.ts b/feature-libs/cart/wish-list/assets/translations/de/index.ts index 37adc2466ca..0268260fb3f 100644 --- a/feature-libs/cart/wish-list/assets/translations/de/index.ts +++ b/feature-libs/cart/wish-list/assets/translations/de/index.ts @@ -5,7 +5,6 @@ */ import wishlist from './wishlist.json'; - export const de = { wishlist, }; diff --git a/feature-libs/cart/wish-list/assets/translations/en/index.ts b/feature-libs/cart/wish-list/assets/translations/en/index.ts index 1592511531a..6a7e14434e7 100644 --- a/feature-libs/cart/wish-list/assets/translations/en/index.ts +++ b/feature-libs/cart/wish-list/assets/translations/en/index.ts @@ -5,7 +5,6 @@ */ import wishlist from './wishlist.json'; - export const en = { wishlist, }; diff --git a/feature-libs/cart/wish-list/assets/translations/es/index.ts b/feature-libs/cart/wish-list/assets/translations/es/index.ts new file mode 100644 index 00000000000..efc4f65e990 --- /dev/null +++ b/feature-libs/cart/wish-list/assets/translations/es/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import wishlist from './wishlist.json'; +export const es = { + wishlist, +}; diff --git a/feature-libs/cart/wish-list/assets/translations/es_CO/index.ts b/feature-libs/cart/wish-list/assets/translations/es_CO/index.ts new file mode 100644 index 00000000000..f70ebe7c910 --- /dev/null +++ b/feature-libs/cart/wish-list/assets/translations/es_CO/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import wishlist from './wishlist.json'; +export const es_CO = { + wishlist, +}; diff --git a/feature-libs/cart/wish-list/assets/translations/fr/index.ts b/feature-libs/cart/wish-list/assets/translations/fr/index.ts new file mode 100644 index 00000000000..885c394c205 --- /dev/null +++ b/feature-libs/cart/wish-list/assets/translations/fr/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import wishlist from './wishlist.json'; +export const fr = { + wishlist, +}; diff --git a/feature-libs/cart/wish-list/assets/translations/hi/index.ts b/feature-libs/cart/wish-list/assets/translations/hi/index.ts new file mode 100644 index 00000000000..96b6f6939c2 --- /dev/null +++ b/feature-libs/cart/wish-list/assets/translations/hi/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import wishlist from './wishlist.json'; +export const hi = { + wishlist, +}; diff --git a/feature-libs/cart/wish-list/assets/translations/hu/index.ts b/feature-libs/cart/wish-list/assets/translations/hu/index.ts new file mode 100644 index 00000000000..b58a7af50be --- /dev/null +++ b/feature-libs/cart/wish-list/assets/translations/hu/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import wishlist from './wishlist.json'; +export const hu = { + wishlist, +}; diff --git a/feature-libs/cart/wish-list/assets/translations/id/index.ts b/feature-libs/cart/wish-list/assets/translations/id/index.ts new file mode 100644 index 00000000000..d99edb205f7 --- /dev/null +++ b/feature-libs/cart/wish-list/assets/translations/id/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import wishlist from './wishlist.json'; +export const id = { + wishlist, +}; diff --git a/feature-libs/cart/wish-list/assets/translations/it/index.ts b/feature-libs/cart/wish-list/assets/translations/it/index.ts new file mode 100644 index 00000000000..a084361ff51 --- /dev/null +++ b/feature-libs/cart/wish-list/assets/translations/it/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import wishlist from './wishlist.json'; +export const it = { + wishlist, +}; diff --git a/feature-libs/cart/wish-list/assets/translations/ja/index.ts b/feature-libs/cart/wish-list/assets/translations/ja/index.ts index 49a85f36098..60621bd5676 100644 --- a/feature-libs/cart/wish-list/assets/translations/ja/index.ts +++ b/feature-libs/cart/wish-list/assets/translations/ja/index.ts @@ -5,7 +5,6 @@ */ import wishlist from './wishlist.json'; - export const ja = { wishlist, }; diff --git a/feature-libs/cart/wish-list/assets/translations/ko/index.ts b/feature-libs/cart/wish-list/assets/translations/ko/index.ts new file mode 100644 index 00000000000..2399cd17a3f --- /dev/null +++ b/feature-libs/cart/wish-list/assets/translations/ko/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import wishlist from './wishlist.json'; +export const ko = { + wishlist, +}; diff --git a/feature-libs/cart/wish-list/assets/translations/pl/index.ts b/feature-libs/cart/wish-list/assets/translations/pl/index.ts new file mode 100644 index 00000000000..0954a7cd481 --- /dev/null +++ b/feature-libs/cart/wish-list/assets/translations/pl/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import wishlist from './wishlist.json'; +export const pl = { + wishlist, +}; diff --git a/feature-libs/cart/wish-list/assets/translations/pt/index.ts b/feature-libs/cart/wish-list/assets/translations/pt/index.ts new file mode 100644 index 00000000000..a1eddb3dec6 --- /dev/null +++ b/feature-libs/cart/wish-list/assets/translations/pt/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import wishlist from './wishlist.json'; +export const pt = { + wishlist, +}; diff --git a/feature-libs/cart/wish-list/assets/translations/ru/index.ts b/feature-libs/cart/wish-list/assets/translations/ru/index.ts new file mode 100644 index 00000000000..9bbbc540931 --- /dev/null +++ b/feature-libs/cart/wish-list/assets/translations/ru/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import wishlist from './wishlist.json'; +export const ru = { + wishlist, +}; diff --git a/feature-libs/cart/wish-list/assets/translations/translations.ts b/feature-libs/cart/wish-list/assets/translations/translations.ts index 6b144b5acc1..9517283f8fd 100644 --- a/feature-libs/cart/wish-list/assets/translations/translations.ts +++ b/feature-libs/cart/wish-list/assets/translations/translations.ts @@ -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 wishListTranslations: TranslationResources = { +/** + * @deprecated use **specific language** translations (suffixed with language code) instead, + * like in the following example: + * ```diff + * i18n: { + * - resources: wishListTranslations + * + resources: { en: wishListTranslationsEn } + * } + * ``` + */ +export const wishListTranslations = { en, - ja, - de, - zh, }; -export const wishListTranslationChunksConfig: TranslationChunksConfig = { - wishlist: ['wishlist'], -}; +export { cs as wishListTranslationsCs } from './cs/index'; +export { de as wishListTranslationsDe } from './de/index'; +export { en as wishListTranslationsEn } from './en/index'; +export { es as wishListTranslationsEs } from './es/index'; +export { es_CO as wishListTranslationsEs_CO } from './es_CO/index'; +export { fr as wishListTranslationsFr } from './fr/index'; +export { hi as wishListTranslationsHi } from './hi/index'; +export { hu as wishListTranslationsHu } from './hu/index'; +export { id as wishListTranslationsId } from './id/index'; +export { it as wishListTranslationsIt } from './it/index'; +export { ja as wishListTranslationsJa } from './ja/index'; +export { ko as wishListTranslationsKo } from './ko/index'; +export { pl as wishListTranslationsPl } from './pl/index'; +export { pt as wishListTranslationsPt } from './pt/index'; +export { ru as wishListTranslationsRu } from './ru/index'; +export { zh as wishListTranslationsZh } from './zh/index'; +export { zh_TW as wishListTranslationsZh_TW } from './zh_TW/index'; diff --git a/feature-libs/cart/wish-list/assets/translations/zh/index.ts b/feature-libs/cart/wish-list/assets/translations/zh/index.ts index b86100aa019..76564b26102 100644 --- a/feature-libs/cart/wish-list/assets/translations/zh/index.ts +++ b/feature-libs/cart/wish-list/assets/translations/zh/index.ts @@ -5,7 +5,6 @@ */ import wishlist from './wishlist.json'; - export const zh = { wishlist, }; diff --git a/feature-libs/cart/wish-list/assets/translations/zh_TW/index.ts b/feature-libs/cart/wish-list/assets/translations/zh_TW/index.ts new file mode 100644 index 00000000000..3a9602992cd --- /dev/null +++ b/feature-libs/cart/wish-list/assets/translations/zh_TW/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import wishlist from './wishlist.json'; +export const zh_TW = { + wishlist, +}; diff --git a/feature-libs/checkout/b2b/assets/translations/cs/index.ts b/feature-libs/checkout/b2b/assets/translations/cs/index.ts new file mode 100644 index 00000000000..fe805de50f4 --- /dev/null +++ b/feature-libs/checkout/b2b/assets/translations/cs/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import checkoutB2B from './checkoutB2B.json'; +export const cs = { + checkoutB2B, +}; diff --git a/feature-libs/checkout/b2b/assets/translations/de/index.ts b/feature-libs/checkout/b2b/assets/translations/de/index.ts index c713cc62d6c..340c68b564a 100644 --- a/feature-libs/checkout/b2b/assets/translations/de/index.ts +++ b/feature-libs/checkout/b2b/assets/translations/de/index.ts @@ -5,7 +5,6 @@ */ import checkoutB2B from './checkoutB2B.json'; - export const de = { checkoutB2B, }; diff --git a/feature-libs/checkout/b2b/assets/translations/en/index.ts b/feature-libs/checkout/b2b/assets/translations/en/index.ts index d8049caba32..7a376155d48 100644 --- a/feature-libs/checkout/b2b/assets/translations/en/index.ts +++ b/feature-libs/checkout/b2b/assets/translations/en/index.ts @@ -5,7 +5,6 @@ */ import checkoutB2B from './checkoutB2B.json'; - export const en = { checkoutB2B, }; diff --git a/feature-libs/checkout/b2b/assets/translations/es/index.ts b/feature-libs/checkout/b2b/assets/translations/es/index.ts new file mode 100644 index 00000000000..0944e803055 --- /dev/null +++ b/feature-libs/checkout/b2b/assets/translations/es/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import checkoutB2B from './checkoutB2B.json'; +export const es = { + checkoutB2B, +}; diff --git a/feature-libs/checkout/b2b/assets/translations/es_CO/index.ts b/feature-libs/checkout/b2b/assets/translations/es_CO/index.ts new file mode 100644 index 00000000000..75755c4b188 --- /dev/null +++ b/feature-libs/checkout/b2b/assets/translations/es_CO/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import checkoutB2B from './checkoutB2B.json'; +export const es_CO = { + checkoutB2B, +}; diff --git a/feature-libs/checkout/b2b/assets/translations/fr/index.ts b/feature-libs/checkout/b2b/assets/translations/fr/index.ts new file mode 100644 index 00000000000..3b46204b7e3 --- /dev/null +++ b/feature-libs/checkout/b2b/assets/translations/fr/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import checkoutB2B from './checkoutB2B.json'; +export const fr = { + checkoutB2B, +}; diff --git a/feature-libs/checkout/b2b/assets/translations/hi/index.ts b/feature-libs/checkout/b2b/assets/translations/hi/index.ts new file mode 100644 index 00000000000..e31bd7f33c4 --- /dev/null +++ b/feature-libs/checkout/b2b/assets/translations/hi/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import checkoutB2B from './checkoutB2B.json'; +export const hi = { + checkoutB2B, +}; diff --git a/feature-libs/checkout/b2b/assets/translations/hu/index.ts b/feature-libs/checkout/b2b/assets/translations/hu/index.ts new file mode 100644 index 00000000000..2a69f5df8ea --- /dev/null +++ b/feature-libs/checkout/b2b/assets/translations/hu/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import checkoutB2B from './checkoutB2B.json'; +export const hu = { + checkoutB2B, +}; diff --git a/feature-libs/checkout/b2b/assets/translations/id/index.ts b/feature-libs/checkout/b2b/assets/translations/id/index.ts new file mode 100644 index 00000000000..a0750a8704e --- /dev/null +++ b/feature-libs/checkout/b2b/assets/translations/id/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import checkoutB2B from './checkoutB2B.json'; +export const id = { + checkoutB2B, +}; diff --git a/feature-libs/checkout/b2b/assets/translations/it/index.ts b/feature-libs/checkout/b2b/assets/translations/it/index.ts new file mode 100644 index 00000000000..db7ac5d83ae --- /dev/null +++ b/feature-libs/checkout/b2b/assets/translations/it/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import checkoutB2B from './checkoutB2B.json'; +export const it = { + checkoutB2B, +}; diff --git a/feature-libs/checkout/b2b/assets/translations/ja/index.ts b/feature-libs/checkout/b2b/assets/translations/ja/index.ts index 554ce693819..142c4cc5c26 100644 --- a/feature-libs/checkout/b2b/assets/translations/ja/index.ts +++ b/feature-libs/checkout/b2b/assets/translations/ja/index.ts @@ -5,7 +5,6 @@ */ import checkoutB2B from './checkoutB2B.json'; - export const ja = { checkoutB2B, }; diff --git a/feature-libs/checkout/b2b/assets/translations/ko/index.ts b/feature-libs/checkout/b2b/assets/translations/ko/index.ts new file mode 100644 index 00000000000..aa5f462c621 --- /dev/null +++ b/feature-libs/checkout/b2b/assets/translations/ko/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import checkoutB2B from './checkoutB2B.json'; +export const ko = { + checkoutB2B, +}; diff --git a/feature-libs/checkout/b2b/assets/translations/pl/index.ts b/feature-libs/checkout/b2b/assets/translations/pl/index.ts new file mode 100644 index 00000000000..22635e9cd63 --- /dev/null +++ b/feature-libs/checkout/b2b/assets/translations/pl/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import checkoutB2B from './checkoutB2B.json'; +export const pl = { + checkoutB2B, +}; diff --git a/feature-libs/checkout/b2b/assets/translations/pt/index.ts b/feature-libs/checkout/b2b/assets/translations/pt/index.ts new file mode 100644 index 00000000000..df24deee3a3 --- /dev/null +++ b/feature-libs/checkout/b2b/assets/translations/pt/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import checkoutB2B from './checkoutB2B.json'; +export const pt = { + checkoutB2B, +}; diff --git a/feature-libs/checkout/b2b/assets/translations/ru/index.ts b/feature-libs/checkout/b2b/assets/translations/ru/index.ts new file mode 100644 index 00000000000..3ff01271558 --- /dev/null +++ b/feature-libs/checkout/b2b/assets/translations/ru/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import checkoutB2B from './checkoutB2B.json'; +export const ru = { + checkoutB2B, +}; diff --git a/feature-libs/checkout/b2b/assets/translations/translations.ts b/feature-libs/checkout/b2b/assets/translations/translations.ts index 390abc5a9de..4fde1a98df2 100644 --- a/feature-libs/checkout/b2b/assets/translations/translations.ts +++ b/feature-libs/checkout/b2b/assets/translations/translations.ts @@ -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 checkoutB2BTranslations: TranslationResources = { +/** + * @deprecated use **specific language** translations (suffixed with language code) instead, + * like in the following example: + * ```diff + * i18n: { + * - resources: checkoutB2BTranslations + * + resources: { en: checkoutB2BTranslationsEn } + * } + * ``` + */ +export const checkoutB2BTranslations = { en, - ja, - de, - zh, }; -export const checkoutB2BTranslationChunksConfig: TranslationChunksConfig = { - checkoutB2B: ['checkoutB2B'], -}; +export { cs as checkoutB2BTranslationsCs } from './cs/index'; +export { de as checkoutB2BTranslationsDe } from './de/index'; +export { en as checkoutB2BTranslationsEn } from './en/index'; +export { es as checkoutB2BTranslationsEs } from './es/index'; +export { es_CO as checkoutB2BTranslationsEs_CO } from './es_CO/index'; +export { fr as checkoutB2BTranslationsFr } from './fr/index'; +export { hi as checkoutB2BTranslationsHi } from './hi/index'; +export { hu as checkoutB2BTranslationsHu } from './hu/index'; +export { id as checkoutB2BTranslationsId } from './id/index'; +export { it as checkoutB2BTranslationsIt } from './it/index'; +export { ja as checkoutB2BTranslationsJa } from './ja/index'; +export { ko as checkoutB2BTranslationsKo } from './ko/index'; +export { pl as checkoutB2BTranslationsPl } from './pl/index'; +export { pt as checkoutB2BTranslationsPt } from './pt/index'; +export { ru as checkoutB2BTranslationsRu } from './ru/index'; +export { zh as checkoutB2BTranslationsZh } from './zh/index'; +export { zh_TW as checkoutB2BTranslationsZh_TW } from './zh_TW/index'; diff --git a/feature-libs/checkout/b2b/assets/translations/zh/index.ts b/feature-libs/checkout/b2b/assets/translations/zh/index.ts index f5be9595ffa..f0f75e8e680 100644 --- a/feature-libs/checkout/b2b/assets/translations/zh/index.ts +++ b/feature-libs/checkout/b2b/assets/translations/zh/index.ts @@ -5,7 +5,6 @@ */ import checkoutB2B from './checkoutB2B.json'; - export const zh = { checkoutB2B, }; diff --git a/feature-libs/checkout/b2b/assets/translations/zh_TW/index.ts b/feature-libs/checkout/b2b/assets/translations/zh_TW/index.ts new file mode 100644 index 00000000000..94f63fb8e9d --- /dev/null +++ b/feature-libs/checkout/b2b/assets/translations/zh_TW/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import checkoutB2B from './checkoutB2B.json'; +export const zh_TW = { + checkoutB2B, +}; diff --git a/feature-libs/checkout/base/assets/translations/cs/index.ts b/feature-libs/checkout/base/assets/translations/cs/index.ts new file mode 100644 index 00000000000..cc1e70b669f --- /dev/null +++ b/feature-libs/checkout/base/assets/translations/cs/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import checkout from './checkout.json'; +export const cs = { + checkout, +}; diff --git a/feature-libs/checkout/base/assets/translations/de/index.ts b/feature-libs/checkout/base/assets/translations/de/index.ts index 4944391aefb..0cab637457c 100644 --- a/feature-libs/checkout/base/assets/translations/de/index.ts +++ b/feature-libs/checkout/base/assets/translations/de/index.ts @@ -5,7 +5,6 @@ */ import checkout from './checkout.json'; - export const de = { checkout, }; diff --git a/feature-libs/checkout/base/assets/translations/en/index.ts b/feature-libs/checkout/base/assets/translations/en/index.ts index 0b4faf54437..eacedb0b867 100644 --- a/feature-libs/checkout/base/assets/translations/en/index.ts +++ b/feature-libs/checkout/base/assets/translations/en/index.ts @@ -5,7 +5,6 @@ */ import checkout from './checkout.json'; - export const en = { checkout, }; diff --git a/feature-libs/checkout/base/assets/translations/es/index.ts b/feature-libs/checkout/base/assets/translations/es/index.ts new file mode 100644 index 00000000000..5fc8090ee3d --- /dev/null +++ b/feature-libs/checkout/base/assets/translations/es/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import checkout from './checkout.json'; +export const es = { + checkout, +}; diff --git a/feature-libs/checkout/base/assets/translations/es_CO/index.ts b/feature-libs/checkout/base/assets/translations/es_CO/index.ts new file mode 100644 index 00000000000..09d14a718a6 --- /dev/null +++ b/feature-libs/checkout/base/assets/translations/es_CO/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import checkout from './checkout.json'; +export const es_CO = { + checkout, +}; diff --git a/feature-libs/checkout/base/assets/translations/fr/index.ts b/feature-libs/checkout/base/assets/translations/fr/index.ts new file mode 100644 index 00000000000..379e9fa6a79 --- /dev/null +++ b/feature-libs/checkout/base/assets/translations/fr/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import checkout from './checkout.json'; +export const fr = { + checkout, +}; diff --git a/feature-libs/checkout/base/assets/translations/hi/index.ts b/feature-libs/checkout/base/assets/translations/hi/index.ts new file mode 100644 index 00000000000..974aabcdb6f --- /dev/null +++ b/feature-libs/checkout/base/assets/translations/hi/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import checkout from './checkout.json'; +export const hi = { + checkout, +}; diff --git a/feature-libs/checkout/base/assets/translations/hu/index.ts b/feature-libs/checkout/base/assets/translations/hu/index.ts new file mode 100644 index 00000000000..37718a0b981 --- /dev/null +++ b/feature-libs/checkout/base/assets/translations/hu/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import checkout from './checkout.json'; +export const hu = { + checkout, +}; diff --git a/feature-libs/checkout/base/assets/translations/id/index.ts b/feature-libs/checkout/base/assets/translations/id/index.ts new file mode 100644 index 00000000000..44d67e92a60 --- /dev/null +++ b/feature-libs/checkout/base/assets/translations/id/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import checkout from './checkout.json'; +export const id = { + checkout, +}; diff --git a/feature-libs/checkout/base/assets/translations/it/index.ts b/feature-libs/checkout/base/assets/translations/it/index.ts new file mode 100644 index 00000000000..b34dc515c60 --- /dev/null +++ b/feature-libs/checkout/base/assets/translations/it/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import checkout from './checkout.json'; +export const it = { + checkout, +}; diff --git a/feature-libs/checkout/base/assets/translations/ja/index.ts b/feature-libs/checkout/base/assets/translations/ja/index.ts index c0ff6d37b2b..5eac2269486 100644 --- a/feature-libs/checkout/base/assets/translations/ja/index.ts +++ b/feature-libs/checkout/base/assets/translations/ja/index.ts @@ -5,7 +5,6 @@ */ import checkout from './checkout.json'; - export const ja = { checkout, }; diff --git a/feature-libs/checkout/base/assets/translations/ko/index.ts b/feature-libs/checkout/base/assets/translations/ko/index.ts new file mode 100644 index 00000000000..6aba1396b07 --- /dev/null +++ b/feature-libs/checkout/base/assets/translations/ko/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import checkout from './checkout.json'; +export const ko = { + checkout, +}; diff --git a/feature-libs/checkout/base/assets/translations/pl/index.ts b/feature-libs/checkout/base/assets/translations/pl/index.ts new file mode 100644 index 00000000000..6e4a0cb76d2 --- /dev/null +++ b/feature-libs/checkout/base/assets/translations/pl/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import checkout from './checkout.json'; +export const pl = { + checkout, +}; diff --git a/feature-libs/checkout/base/assets/translations/pt/index.ts b/feature-libs/checkout/base/assets/translations/pt/index.ts new file mode 100644 index 00000000000..5d0e0f79c01 --- /dev/null +++ b/feature-libs/checkout/base/assets/translations/pt/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import checkout from './checkout.json'; +export const pt = { + checkout, +}; diff --git a/feature-libs/checkout/base/assets/translations/ru/index.ts b/feature-libs/checkout/base/assets/translations/ru/index.ts new file mode 100644 index 00000000000..d5ba73faa79 --- /dev/null +++ b/feature-libs/checkout/base/assets/translations/ru/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import checkout from './checkout.json'; +export const ru = { + checkout, +}; diff --git a/feature-libs/checkout/base/assets/translations/translations.ts b/feature-libs/checkout/base/assets/translations/translations.ts index 42562624f05..5f342968afa 100644 --- a/feature-libs/checkout/base/assets/translations/translations.ts +++ b/feature-libs/checkout/base/assets/translations/translations.ts @@ -4,26 +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 checkoutTranslations: TranslationResources = { +/** + * @deprecated use **specific language** translations (suffixed with language code) instead, + * like in the following example: + * ```diff + * i18n: { + * - resources: checkoutTranslations + * + resources: { en: checkoutTranslationsEn } + * } + * ``` + */ +export const checkoutTranslations = { en, - ja, - de, - zh, }; -export const checkoutTranslationChunksConfig: TranslationChunksConfig = { - checkout: [ - 'checkout', - 'checkoutProgress', - 'checkoutAddress', - 'checkoutMode', - 'checkoutReview', - 'checkoutOrderConfirmation', - ], -}; +export { cs as checkoutTranslationsCs } from './cs/index'; +export { de as checkoutTranslationsDe } from './de/index'; +export { en as checkoutTranslationsEn } from './en/index'; +export { es as checkoutTranslationsEs } from './es/index'; +export { es_CO as checkoutTranslationsEs_CO } from './es_CO/index'; +export { fr as checkoutTranslationsFr } from './fr/index'; +export { hi as checkoutTranslationsHi } from './hi/index'; +export { hu as checkoutTranslationsHu } from './hu/index'; +export { id as checkoutTranslationsId } from './id/index'; +export { it as checkoutTranslationsIt } from './it/index'; +export { ja as checkoutTranslationsJa } from './ja/index'; +export { ko as checkoutTranslationsKo } from './ko/index'; +export { pl as checkoutTranslationsPl } from './pl/index'; +export { pt as checkoutTranslationsPt } from './pt/index'; +export { ru as checkoutTranslationsRu } from './ru/index'; +export { zh as checkoutTranslationsZh } from './zh/index'; +export { zh_TW as checkoutTranslationsZh_TW } from './zh_TW/index'; diff --git a/feature-libs/checkout/base/assets/translations/zh/index.ts b/feature-libs/checkout/base/assets/translations/zh/index.ts index 134de7b01bb..3536309d5bd 100644 --- a/feature-libs/checkout/base/assets/translations/zh/index.ts +++ b/feature-libs/checkout/base/assets/translations/zh/index.ts @@ -5,7 +5,6 @@ */ import checkout from './checkout.json'; - export const zh = { checkout, }; diff --git a/feature-libs/checkout/base/assets/translations/zh_TW/index.ts b/feature-libs/checkout/base/assets/translations/zh_TW/index.ts new file mode 100644 index 00000000000..22caef82aa6 --- /dev/null +++ b/feature-libs/checkout/base/assets/translations/zh_TW/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import checkout from './checkout.json'; +export const zh_TW = { + checkout, +}; diff --git a/feature-libs/checkout/scheduled-replenishment/assets/translations/cs/index.ts b/feature-libs/checkout/scheduled-replenishment/assets/translations/cs/index.ts new file mode 100644 index 00000000000..103aca2b287 --- /dev/null +++ b/feature-libs/checkout/scheduled-replenishment/assets/translations/cs/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import checkoutScheduledReplenishment from './checkoutScheduledReplenishment.json'; +export const cs = { + checkoutScheduledReplenishment, +}; diff --git a/feature-libs/checkout/scheduled-replenishment/assets/translations/de/index.ts b/feature-libs/checkout/scheduled-replenishment/assets/translations/de/index.ts index 167f8d71e00..4ea3691d99e 100644 --- a/feature-libs/checkout/scheduled-replenishment/assets/translations/de/index.ts +++ b/feature-libs/checkout/scheduled-replenishment/assets/translations/de/index.ts @@ -5,7 +5,6 @@ */ import checkoutScheduledReplenishment from './checkoutScheduledReplenishment.json'; - export const de = { checkoutScheduledReplenishment, }; diff --git a/feature-libs/checkout/scheduled-replenishment/assets/translations/en/index.ts b/feature-libs/checkout/scheduled-replenishment/assets/translations/en/index.ts index 97ff4774a16..92d036c7b18 100644 --- a/feature-libs/checkout/scheduled-replenishment/assets/translations/en/index.ts +++ b/feature-libs/checkout/scheduled-replenishment/assets/translations/en/index.ts @@ -5,7 +5,6 @@ */ import checkoutScheduledReplenishment from './checkoutScheduledReplenishment.json'; - export const en = { checkoutScheduledReplenishment, }; diff --git a/feature-libs/checkout/scheduled-replenishment/assets/translations/es/index.ts b/feature-libs/checkout/scheduled-replenishment/assets/translations/es/index.ts new file mode 100644 index 00000000000..654dd8b50f4 --- /dev/null +++ b/feature-libs/checkout/scheduled-replenishment/assets/translations/es/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import checkoutScheduledReplenishment from './checkoutScheduledReplenishment.json'; +export const es = { + checkoutScheduledReplenishment, +}; diff --git a/feature-libs/checkout/scheduled-replenishment/assets/translations/es_CO/index.ts b/feature-libs/checkout/scheduled-replenishment/assets/translations/es_CO/index.ts new file mode 100644 index 00000000000..7a92ed8aeb9 --- /dev/null +++ b/feature-libs/checkout/scheduled-replenishment/assets/translations/es_CO/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import checkoutScheduledReplenishment from './checkoutScheduledReplenishment.json'; +export const es_CO = { + checkoutScheduledReplenishment, +}; diff --git a/feature-libs/checkout/scheduled-replenishment/assets/translations/fr/index.ts b/feature-libs/checkout/scheduled-replenishment/assets/translations/fr/index.ts new file mode 100644 index 00000000000..244fe4c5fcd --- /dev/null +++ b/feature-libs/checkout/scheduled-replenishment/assets/translations/fr/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import checkoutScheduledReplenishment from './checkoutScheduledReplenishment.json'; +export const fr = { + checkoutScheduledReplenishment, +}; diff --git a/feature-libs/checkout/scheduled-replenishment/assets/translations/hi/index.ts b/feature-libs/checkout/scheduled-replenishment/assets/translations/hi/index.ts new file mode 100644 index 00000000000..271479c4743 --- /dev/null +++ b/feature-libs/checkout/scheduled-replenishment/assets/translations/hi/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import checkoutScheduledReplenishment from './checkoutScheduledReplenishment.json'; +export const hi = { + checkoutScheduledReplenishment, +}; diff --git a/feature-libs/checkout/scheduled-replenishment/assets/translations/hu/index.ts b/feature-libs/checkout/scheduled-replenishment/assets/translations/hu/index.ts new file mode 100644 index 00000000000..5144a84f02a --- /dev/null +++ b/feature-libs/checkout/scheduled-replenishment/assets/translations/hu/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import checkoutScheduledReplenishment from './checkoutScheduledReplenishment.json'; +export const hu = { + checkoutScheduledReplenishment, +}; diff --git a/feature-libs/checkout/scheduled-replenishment/assets/translations/id/index.ts b/feature-libs/checkout/scheduled-replenishment/assets/translations/id/index.ts new file mode 100644 index 00000000000..7a98ae18b0d --- /dev/null +++ b/feature-libs/checkout/scheduled-replenishment/assets/translations/id/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import checkoutScheduledReplenishment from './checkoutScheduledReplenishment.json'; +export const id = { + checkoutScheduledReplenishment, +}; diff --git a/feature-libs/checkout/scheduled-replenishment/assets/translations/it/index.ts b/feature-libs/checkout/scheduled-replenishment/assets/translations/it/index.ts new file mode 100644 index 00000000000..a3f21a242ff --- /dev/null +++ b/feature-libs/checkout/scheduled-replenishment/assets/translations/it/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import checkoutScheduledReplenishment from './checkoutScheduledReplenishment.json'; +export const it = { + checkoutScheduledReplenishment, +}; diff --git a/feature-libs/checkout/scheduled-replenishment/assets/translations/ja/index.ts b/feature-libs/checkout/scheduled-replenishment/assets/translations/ja/index.ts index f9e55c03132..e900aa984e4 100644 --- a/feature-libs/checkout/scheduled-replenishment/assets/translations/ja/index.ts +++ b/feature-libs/checkout/scheduled-replenishment/assets/translations/ja/index.ts @@ -5,7 +5,6 @@ */ import checkoutScheduledReplenishment from './checkoutScheduledReplenishment.json'; - export const ja = { checkoutScheduledReplenishment, }; diff --git a/feature-libs/checkout/scheduled-replenishment/assets/translations/ko/index.ts b/feature-libs/checkout/scheduled-replenishment/assets/translations/ko/index.ts new file mode 100644 index 00000000000..ff5f6935db8 --- /dev/null +++ b/feature-libs/checkout/scheduled-replenishment/assets/translations/ko/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import checkoutScheduledReplenishment from './checkoutScheduledReplenishment.json'; +export const ko = { + checkoutScheduledReplenishment, +}; diff --git a/feature-libs/checkout/scheduled-replenishment/assets/translations/pl/index.ts b/feature-libs/checkout/scheduled-replenishment/assets/translations/pl/index.ts new file mode 100644 index 00000000000..5d663b34b3b --- /dev/null +++ b/feature-libs/checkout/scheduled-replenishment/assets/translations/pl/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import checkoutScheduledReplenishment from './checkoutScheduledReplenishment.json'; +export const pl = { + checkoutScheduledReplenishment, +}; diff --git a/feature-libs/checkout/scheduled-replenishment/assets/translations/pt/index.ts b/feature-libs/checkout/scheduled-replenishment/assets/translations/pt/index.ts new file mode 100644 index 00000000000..83654e41bef --- /dev/null +++ b/feature-libs/checkout/scheduled-replenishment/assets/translations/pt/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import checkoutScheduledReplenishment from './checkoutScheduledReplenishment.json'; +export const pt = { + checkoutScheduledReplenishment, +}; diff --git a/feature-libs/checkout/scheduled-replenishment/assets/translations/ru/index.ts b/feature-libs/checkout/scheduled-replenishment/assets/translations/ru/index.ts new file mode 100644 index 00000000000..6024d6aaac9 --- /dev/null +++ b/feature-libs/checkout/scheduled-replenishment/assets/translations/ru/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import checkoutScheduledReplenishment from './checkoutScheduledReplenishment.json'; +export const ru = { + checkoutScheduledReplenishment, +}; diff --git a/feature-libs/checkout/scheduled-replenishment/assets/translations/translations.ts b/feature-libs/checkout/scheduled-replenishment/assets/translations/translations.ts index ad920b2727f..905fd18e307 100644 --- a/feature-libs/checkout/scheduled-replenishment/assets/translations/translations.ts +++ b/feature-libs/checkout/scheduled-replenishment/assets/translations/translations.ts @@ -4,21 +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 checkoutScheduledReplenishmentTranslations: TranslationResources = - { - en, - ja, - de, - zh, - }; +/** + * @deprecated use **specific language** translations (suffixed with language code) instead, + * like in the following example: + * ```diff + * i18n: { + * - resources: checkoutScheduledReplenishmentTranslations + * + resources: { en: checkoutScheduledReplenishmentTranslationsEn } + * } + * ``` + */ +export const checkoutScheduledReplenishmentTranslations = { + en, +}; -export const checkoutScheduledReplenishmentTranslationChunksConfig: TranslationChunksConfig = - { - checkoutScheduledReplenishment: ['checkoutScheduledReplenishment'], - }; +export { cs as checkoutScheduledReplenishmentTranslationsCs } from './cs/index'; +export { de as checkoutScheduledReplenishmentTranslationsDe } from './de/index'; +export { en as checkoutScheduledReplenishmentTranslationsEn } from './en/index'; +export { es as checkoutScheduledReplenishmentTranslationsEs } from './es/index'; +export { es_CO as checkoutScheduledReplenishmentTranslationsEs_CO } from './es_CO/index'; +export { fr as checkoutScheduledReplenishmentTranslationsFr } from './fr/index'; +export { hi as checkoutScheduledReplenishmentTranslationsHi } from './hi/index'; +export { hu as checkoutScheduledReplenishmentTranslationsHu } from './hu/index'; +export { id as checkoutScheduledReplenishmentTranslationsId } from './id/index'; +export { it as checkoutScheduledReplenishmentTranslationsIt } from './it/index'; +export { ja as checkoutScheduledReplenishmentTranslationsJa } from './ja/index'; +export { ko as checkoutScheduledReplenishmentTranslationsKo } from './ko/index'; +export { pl as checkoutScheduledReplenishmentTranslationsPl } from './pl/index'; +export { pt as checkoutScheduledReplenishmentTranslationsPt } from './pt/index'; +export { ru as checkoutScheduledReplenishmentTranslationsRu } from './ru/index'; +export { zh as checkoutScheduledReplenishmentTranslationsZh } from './zh/index'; +export { zh_TW as checkoutScheduledReplenishmentTranslationsZh_TW } from './zh_TW/index'; diff --git a/feature-libs/checkout/scheduled-replenishment/assets/translations/zh/index.ts b/feature-libs/checkout/scheduled-replenishment/assets/translations/zh/index.ts index ed7c2d02058..9bc5bca7c7e 100644 --- a/feature-libs/checkout/scheduled-replenishment/assets/translations/zh/index.ts +++ b/feature-libs/checkout/scheduled-replenishment/assets/translations/zh/index.ts @@ -5,7 +5,6 @@ */ import checkoutScheduledReplenishment from './checkoutScheduledReplenishment.json'; - export const zh = { checkoutScheduledReplenishment, }; diff --git a/feature-libs/checkout/scheduled-replenishment/assets/translations/zh_TW/index.ts b/feature-libs/checkout/scheduled-replenishment/assets/translations/zh_TW/index.ts new file mode 100644 index 00000000000..c40dde9721b --- /dev/null +++ b/feature-libs/checkout/scheduled-replenishment/assets/translations/zh_TW/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import checkoutScheduledReplenishment from './checkoutScheduledReplenishment.json'; +export const zh_TW = { + checkoutScheduledReplenishment, +}; diff --git a/feature-libs/customer-ticketing/assets/translations/cs/index.ts b/feature-libs/customer-ticketing/assets/translations/cs/index.ts new file mode 100644 index 00000000000..cb2a4d266af --- /dev/null +++ b/feature-libs/customer-ticketing/assets/translations/cs/index.ts @@ -0,0 +1,12 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import customerTicketing from './customerTicketing.json'; +import myAccountV2CustomerTicketing from './myAccountV2CustomerTicketing.json'; +export const cs = { + customerTicketing, + myAccountV2CustomerTicketing, +}; diff --git a/feature-libs/customer-ticketing/assets/translations/de/index.ts b/feature-libs/customer-ticketing/assets/translations/de/index.ts index 9d13810fb8a..d6527daf33a 100644 --- a/feature-libs/customer-ticketing/assets/translations/de/index.ts +++ b/feature-libs/customer-ticketing/assets/translations/de/index.ts @@ -6,7 +6,6 @@ import customerTicketing from './customerTicketing.json'; import myAccountV2CustomerTicketing from './myAccountV2CustomerTicketing.json'; - export const de = { customerTicketing, myAccountV2CustomerTicketing, diff --git a/feature-libs/customer-ticketing/assets/translations/en/index.ts b/feature-libs/customer-ticketing/assets/translations/en/index.ts index 7ccd0e57899..6155a6fe668 100644 --- a/feature-libs/customer-ticketing/assets/translations/en/index.ts +++ b/feature-libs/customer-ticketing/assets/translations/en/index.ts @@ -6,7 +6,6 @@ import customerTicketing from './customerTicketing.json'; import myAccountV2CustomerTicketing from './myAccountV2CustomerTicketing.json'; - export const en = { customerTicketing, myAccountV2CustomerTicketing, diff --git a/feature-libs/customer-ticketing/assets/translations/es/index.ts b/feature-libs/customer-ticketing/assets/translations/es/index.ts new file mode 100644 index 00000000000..de129ed5bfc --- /dev/null +++ b/feature-libs/customer-ticketing/assets/translations/es/index.ts @@ -0,0 +1,12 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import customerTicketing from './customerTicketing.json'; +import myAccountV2CustomerTicketing from './myAccountV2CustomerTicketing.json'; +export const es = { + customerTicketing, + myAccountV2CustomerTicketing, +}; diff --git a/feature-libs/customer-ticketing/assets/translations/es_CO/index.ts b/feature-libs/customer-ticketing/assets/translations/es_CO/index.ts new file mode 100644 index 00000000000..38d731c469e --- /dev/null +++ b/feature-libs/customer-ticketing/assets/translations/es_CO/index.ts @@ -0,0 +1,12 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import customerTicketing from './customerTicketing.json'; +import myAccountV2CustomerTicketing from './myAccountV2CustomerTicketing.json'; +export const es_CO = { + customerTicketing, + myAccountV2CustomerTicketing, +}; diff --git a/feature-libs/customer-ticketing/assets/translations/fr/index.ts b/feature-libs/customer-ticketing/assets/translations/fr/index.ts new file mode 100644 index 00000000000..f2ab1710e52 --- /dev/null +++ b/feature-libs/customer-ticketing/assets/translations/fr/index.ts @@ -0,0 +1,12 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import customerTicketing from './customerTicketing.json'; +import myAccountV2CustomerTicketing from './myAccountV2CustomerTicketing.json'; +export const fr = { + customerTicketing, + myAccountV2CustomerTicketing, +}; diff --git a/feature-libs/customer-ticketing/assets/translations/hi/index.ts b/feature-libs/customer-ticketing/assets/translations/hi/index.ts new file mode 100644 index 00000000000..0cb5469a54e --- /dev/null +++ b/feature-libs/customer-ticketing/assets/translations/hi/index.ts @@ -0,0 +1,12 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import customerTicketing from './customerTicketing.json'; +import myAccountV2CustomerTicketing from './myAccountV2CustomerTicketing.json'; +export const hi = { + customerTicketing, + myAccountV2CustomerTicketing, +}; diff --git a/feature-libs/customer-ticketing/assets/translations/hu/index.ts b/feature-libs/customer-ticketing/assets/translations/hu/index.ts new file mode 100644 index 00000000000..3f04b54806e --- /dev/null +++ b/feature-libs/customer-ticketing/assets/translations/hu/index.ts @@ -0,0 +1,12 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import customerTicketing from './customerTicketing.json'; +import myAccountV2CustomerTicketing from './myAccountV2CustomerTicketing.json'; +export const hu = { + customerTicketing, + myAccountV2CustomerTicketing, +}; diff --git a/feature-libs/customer-ticketing/assets/translations/id/index.ts b/feature-libs/customer-ticketing/assets/translations/id/index.ts new file mode 100644 index 00000000000..aeb255c1570 --- /dev/null +++ b/feature-libs/customer-ticketing/assets/translations/id/index.ts @@ -0,0 +1,12 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import customerTicketing from './customerTicketing.json'; +import myAccountV2CustomerTicketing from './myAccountV2CustomerTicketing.json'; +export const id = { + customerTicketing, + myAccountV2CustomerTicketing, +}; diff --git a/feature-libs/customer-ticketing/assets/translations/it/index.ts b/feature-libs/customer-ticketing/assets/translations/it/index.ts new file mode 100644 index 00000000000..afe182bcb96 --- /dev/null +++ b/feature-libs/customer-ticketing/assets/translations/it/index.ts @@ -0,0 +1,12 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import customerTicketing from './customerTicketing.json'; +import myAccountV2CustomerTicketing from './myAccountV2CustomerTicketing.json'; +export const it = { + customerTicketing, + myAccountV2CustomerTicketing, +}; diff --git a/feature-libs/customer-ticketing/assets/translations/ja/index.ts b/feature-libs/customer-ticketing/assets/translations/ja/index.ts index 8160fbd2c28..bb377bfa229 100644 --- a/feature-libs/customer-ticketing/assets/translations/ja/index.ts +++ b/feature-libs/customer-ticketing/assets/translations/ja/index.ts @@ -6,7 +6,6 @@ import customerTicketing from './customerTicketing.json'; import myAccountV2CustomerTicketing from './myAccountV2CustomerTicketing.json'; - export const ja = { customerTicketing, myAccountV2CustomerTicketing, diff --git a/feature-libs/customer-ticketing/assets/translations/ko/index.ts b/feature-libs/customer-ticketing/assets/translations/ko/index.ts new file mode 100644 index 00000000000..c05802f8e67 --- /dev/null +++ b/feature-libs/customer-ticketing/assets/translations/ko/index.ts @@ -0,0 +1,12 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import customerTicketing from './customerTicketing.json'; +import myAccountV2CustomerTicketing from './myAccountV2CustomerTicketing.json'; +export const ko = { + customerTicketing, + myAccountV2CustomerTicketing, +}; diff --git a/feature-libs/customer-ticketing/assets/translations/pl/index.ts b/feature-libs/customer-ticketing/assets/translations/pl/index.ts new file mode 100644 index 00000000000..cbf4e1e6c25 --- /dev/null +++ b/feature-libs/customer-ticketing/assets/translations/pl/index.ts @@ -0,0 +1,12 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import customerTicketing from './customerTicketing.json'; +import myAccountV2CustomerTicketing from './myAccountV2CustomerTicketing.json'; +export const pl = { + customerTicketing, + myAccountV2CustomerTicketing, +}; diff --git a/feature-libs/customer-ticketing/assets/translations/pt/index.ts b/feature-libs/customer-ticketing/assets/translations/pt/index.ts new file mode 100644 index 00000000000..490cd02a2cf --- /dev/null +++ b/feature-libs/customer-ticketing/assets/translations/pt/index.ts @@ -0,0 +1,12 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import customerTicketing from './customerTicketing.json'; +import myAccountV2CustomerTicketing from './myAccountV2CustomerTicketing.json'; +export const pt = { + customerTicketing, + myAccountV2CustomerTicketing, +}; diff --git a/feature-libs/customer-ticketing/assets/translations/ru/index.ts b/feature-libs/customer-ticketing/assets/translations/ru/index.ts new file mode 100644 index 00000000000..b989c6bb7cd --- /dev/null +++ b/feature-libs/customer-ticketing/assets/translations/ru/index.ts @@ -0,0 +1,12 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import customerTicketing from './customerTicketing.json'; +import myAccountV2CustomerTicketing from './myAccountV2CustomerTicketing.json'; +export const ru = { + customerTicketing, + myAccountV2CustomerTicketing, +}; diff --git a/feature-libs/customer-ticketing/assets/translations/translations.ts b/feature-libs/customer-ticketing/assets/translations/translations.ts index 9d84ce608f8..59cc74dd7d5 100644 --- a/feature-libs/customer-ticketing/assets/translations/translations.ts +++ b/feature-libs/customer-ticketing/assets/translations/translations.ts @@ -4,26 +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 customerTicketingTranslations: TranslationResources = { +/** + * @deprecated use **specific language** translations (suffixed with language code) instead, + * like in the following example: + * ```diff + * i18n: { + * - resources: customerTicketingTranslations + * + resources: { en: customerTicketingTranslationsEn } + * } + * ``` + */ +export const customerTicketingTranslations = { en, - ja, - de, - zh, }; -export const customerTicketingTranslationChunksConfig: TranslationChunksConfig = - { - customerTicketing: [ - 'customerTicketing', - 'customerTicketingList', - 'createCustomerTicket', - 'customerTicketingDetails', - ], - myAccountV2CustomerTicketing: ['myAccountV2CustomerTicketing'], - }; +export { cs as customerTicketingTranslationsCs } from './cs/index'; +export { de as customerTicketingTranslationsDe } from './de/index'; +export { en as customerTicketingTranslationsEn } from './en/index'; +export { es as customerTicketingTranslationsEs } from './es/index'; +export { es_CO as customerTicketingTranslationsEs_CO } from './es_CO/index'; +export { fr as customerTicketingTranslationsFr } from './fr/index'; +export { hi as customerTicketingTranslationsHi } from './hi/index'; +export { hu as customerTicketingTranslationsHu } from './hu/index'; +export { id as customerTicketingTranslationsId } from './id/index'; +export { it as customerTicketingTranslationsIt } from './it/index'; +export { ja as customerTicketingTranslationsJa } from './ja/index'; +export { ko as customerTicketingTranslationsKo } from './ko/index'; +export { pl as customerTicketingTranslationsPl } from './pl/index'; +export { pt as customerTicketingTranslationsPt } from './pt/index'; +export { ru as customerTicketingTranslationsRu } from './ru/index'; +export { zh as customerTicketingTranslationsZh } from './zh/index'; +export { zh_TW as customerTicketingTranslationsZh_TW } from './zh_TW/index'; diff --git a/feature-libs/customer-ticketing/assets/translations/zh/index.ts b/feature-libs/customer-ticketing/assets/translations/zh/index.ts index 64604b9a5e7..556c9bc3391 100644 --- a/feature-libs/customer-ticketing/assets/translations/zh/index.ts +++ b/feature-libs/customer-ticketing/assets/translations/zh/index.ts @@ -6,7 +6,6 @@ import customerTicketing from './customerTicketing.json'; import myAccountV2CustomerTicketing from './myAccountV2CustomerTicketing.json'; - export const zh = { customerTicketing, myAccountV2CustomerTicketing, diff --git a/feature-libs/customer-ticketing/assets/translations/zh_TW/index.ts b/feature-libs/customer-ticketing/assets/translations/zh_TW/index.ts new file mode 100644 index 00000000000..2a971000cde --- /dev/null +++ b/feature-libs/customer-ticketing/assets/translations/zh_TW/index.ts @@ -0,0 +1,12 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import customerTicketing from './customerTicketing.json'; +import myAccountV2CustomerTicketing from './myAccountV2CustomerTicketing.json'; +export const zh_TW = { + customerTicketing, + myAccountV2CustomerTicketing, +}; diff --git a/feature-libs/estimated-delivery-date/assets/translations/cs/index.ts b/feature-libs/estimated-delivery-date/assets/translations/cs/index.ts new file mode 100644 index 00000000000..f17cbd3af88 --- /dev/null +++ b/feature-libs/estimated-delivery-date/assets/translations/cs/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import estimatedDeliveryDate from './estimatedDeliveryDate.json'; +export const cs = { + estimatedDeliveryDate, +}; diff --git a/feature-libs/estimated-delivery-date/assets/translations/de/index.ts b/feature-libs/estimated-delivery-date/assets/translations/de/index.ts index 46372db888f..10291feb826 100644 --- a/feature-libs/estimated-delivery-date/assets/translations/de/index.ts +++ b/feature-libs/estimated-delivery-date/assets/translations/de/index.ts @@ -5,7 +5,6 @@ */ import estimatedDeliveryDate from './estimatedDeliveryDate.json'; - export const de = { estimatedDeliveryDate, }; diff --git a/feature-libs/estimated-delivery-date/assets/translations/en/index.ts b/feature-libs/estimated-delivery-date/assets/translations/en/index.ts index f052d23111f..1c0489110b5 100644 --- a/feature-libs/estimated-delivery-date/assets/translations/en/index.ts +++ b/feature-libs/estimated-delivery-date/assets/translations/en/index.ts @@ -5,7 +5,6 @@ */ import estimatedDeliveryDate from './estimatedDeliveryDate.json'; - export const en = { estimatedDeliveryDate, }; diff --git a/feature-libs/estimated-delivery-date/assets/translations/es/index.ts b/feature-libs/estimated-delivery-date/assets/translations/es/index.ts new file mode 100644 index 00000000000..907f8be67d6 --- /dev/null +++ b/feature-libs/estimated-delivery-date/assets/translations/es/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import estimatedDeliveryDate from './estimatedDeliveryDate.json'; +export const es = { + estimatedDeliveryDate, +}; diff --git a/feature-libs/estimated-delivery-date/assets/translations/es_CO/index.ts b/feature-libs/estimated-delivery-date/assets/translations/es_CO/index.ts new file mode 100644 index 00000000000..4ce916d0701 --- /dev/null +++ b/feature-libs/estimated-delivery-date/assets/translations/es_CO/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import estimatedDeliveryDate from './estimatedDeliveryDate.json'; +export const es_CO = { + estimatedDeliveryDate, +}; diff --git a/feature-libs/estimated-delivery-date/assets/translations/fr/index.ts b/feature-libs/estimated-delivery-date/assets/translations/fr/index.ts new file mode 100644 index 00000000000..57c9b9c5d31 --- /dev/null +++ b/feature-libs/estimated-delivery-date/assets/translations/fr/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import estimatedDeliveryDate from './estimatedDeliveryDate.json'; +export const fr = { + estimatedDeliveryDate, +}; diff --git a/feature-libs/estimated-delivery-date/assets/translations/hi/index.ts b/feature-libs/estimated-delivery-date/assets/translations/hi/index.ts new file mode 100644 index 00000000000..521a73aefaa --- /dev/null +++ b/feature-libs/estimated-delivery-date/assets/translations/hi/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import estimatedDeliveryDate from './estimatedDeliveryDate.json'; +export const hi = { + estimatedDeliveryDate, +}; diff --git a/feature-libs/estimated-delivery-date/assets/translations/hu/index.ts b/feature-libs/estimated-delivery-date/assets/translations/hu/index.ts new file mode 100644 index 00000000000..a28038b4544 --- /dev/null +++ b/feature-libs/estimated-delivery-date/assets/translations/hu/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import estimatedDeliveryDate from './estimatedDeliveryDate.json'; +export const hu = { + estimatedDeliveryDate, +}; diff --git a/feature-libs/estimated-delivery-date/assets/translations/id/index.ts b/feature-libs/estimated-delivery-date/assets/translations/id/index.ts new file mode 100644 index 00000000000..6c52b18cfaf --- /dev/null +++ b/feature-libs/estimated-delivery-date/assets/translations/id/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import estimatedDeliveryDate from './estimatedDeliveryDate.json'; +export const id = { + estimatedDeliveryDate, +}; diff --git a/feature-libs/estimated-delivery-date/assets/translations/it/index.ts b/feature-libs/estimated-delivery-date/assets/translations/it/index.ts new file mode 100644 index 00000000000..d687a3aa936 --- /dev/null +++ b/feature-libs/estimated-delivery-date/assets/translations/it/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import estimatedDeliveryDate from './estimatedDeliveryDate.json'; +export const it = { + estimatedDeliveryDate, +}; diff --git a/feature-libs/estimated-delivery-date/assets/translations/ja/index.ts b/feature-libs/estimated-delivery-date/assets/translations/ja/index.ts index 5bae4c06c54..5eb224c6064 100644 --- a/feature-libs/estimated-delivery-date/assets/translations/ja/index.ts +++ b/feature-libs/estimated-delivery-date/assets/translations/ja/index.ts @@ -5,7 +5,6 @@ */ import estimatedDeliveryDate from './estimatedDeliveryDate.json'; - export const ja = { estimatedDeliveryDate, }; diff --git a/feature-libs/estimated-delivery-date/assets/translations/ko/index.ts b/feature-libs/estimated-delivery-date/assets/translations/ko/index.ts new file mode 100644 index 00000000000..76c489c05fa --- /dev/null +++ b/feature-libs/estimated-delivery-date/assets/translations/ko/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import estimatedDeliveryDate from './estimatedDeliveryDate.json'; +export const ko = { + estimatedDeliveryDate, +}; diff --git a/feature-libs/estimated-delivery-date/assets/translations/pl/index.ts b/feature-libs/estimated-delivery-date/assets/translations/pl/index.ts new file mode 100644 index 00000000000..4be85cd9317 --- /dev/null +++ b/feature-libs/estimated-delivery-date/assets/translations/pl/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import estimatedDeliveryDate from './estimatedDeliveryDate.json'; +export const pl = { + estimatedDeliveryDate, +}; diff --git a/feature-libs/estimated-delivery-date/assets/translations/pt/index.ts b/feature-libs/estimated-delivery-date/assets/translations/pt/index.ts new file mode 100644 index 00000000000..98f34cde24a --- /dev/null +++ b/feature-libs/estimated-delivery-date/assets/translations/pt/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import estimatedDeliveryDate from './estimatedDeliveryDate.json'; +export const pt = { + estimatedDeliveryDate, +}; diff --git a/feature-libs/estimated-delivery-date/assets/translations/ru/index.ts b/feature-libs/estimated-delivery-date/assets/translations/ru/index.ts new file mode 100644 index 00000000000..166f0e84744 --- /dev/null +++ b/feature-libs/estimated-delivery-date/assets/translations/ru/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import estimatedDeliveryDate from './estimatedDeliveryDate.json'; +export const ru = { + estimatedDeliveryDate, +}; diff --git a/feature-libs/estimated-delivery-date/assets/translations/translations.ts b/feature-libs/estimated-delivery-date/assets/translations/translations.ts index 7a075e95b89..fa626172351 100644 --- a/feature-libs/estimated-delivery-date/assets/translations/translations.ts +++ b/feature-libs/estimated-delivery-date/assets/translations/translations.ts @@ -4,20 +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 estimatedDeliveryDateTranslations: TranslationResources = { +/** + * @deprecated use **specific language** translations (suffixed with language code) instead, + * like in the following example: + * ```diff + * i18n: { + * - resources: estimatedDeliveryDateTranslations + * + resources: { en: estimatedDeliveryDateTranslationsEn } + * } + * ``` + */ +export const estimatedDeliveryDateTranslations = { en, - ja, - de, - zh, }; -export const estimatedDeliveryDateTranslationChunksConfig: TranslationChunksConfig = - { - estimatedDeliveryDate: ['estimatedDeliveryDate'], - }; +export { cs as estimatedDeliveryDateTranslationsCs } from './cs/index'; +export { de as estimatedDeliveryDateTranslationsDe } from './de/index'; +export { en as estimatedDeliveryDateTranslationsEn } from './en/index'; +export { es as estimatedDeliveryDateTranslationsEs } from './es/index'; +export { es_CO as estimatedDeliveryDateTranslationsEs_CO } from './es_CO/index'; +export { fr as estimatedDeliveryDateTranslationsFr } from './fr/index'; +export { hi as estimatedDeliveryDateTranslationsHi } from './hi/index'; +export { hu as estimatedDeliveryDateTranslationsHu } from './hu/index'; +export { id as estimatedDeliveryDateTranslationsId } from './id/index'; +export { it as estimatedDeliveryDateTranslationsIt } from './it/index'; +export { ja as estimatedDeliveryDateTranslationsJa } from './ja/index'; +export { ko as estimatedDeliveryDateTranslationsKo } from './ko/index'; +export { pl as estimatedDeliveryDateTranslationsPl } from './pl/index'; +export { pt as estimatedDeliveryDateTranslationsPt } from './pt/index'; +export { ru as estimatedDeliveryDateTranslationsRu } from './ru/index'; +export { zh as estimatedDeliveryDateTranslationsZh } from './zh/index'; +export { zh_TW as estimatedDeliveryDateTranslationsZh_TW } from './zh_TW/index'; diff --git a/feature-libs/estimated-delivery-date/assets/translations/zh/index.ts b/feature-libs/estimated-delivery-date/assets/translations/zh/index.ts index 64c04594f43..20f25f91e69 100644 --- a/feature-libs/estimated-delivery-date/assets/translations/zh/index.ts +++ b/feature-libs/estimated-delivery-date/assets/translations/zh/index.ts @@ -5,7 +5,6 @@ */ import estimatedDeliveryDate from './estimatedDeliveryDate.json'; - export const zh = { estimatedDeliveryDate, }; diff --git a/feature-libs/estimated-delivery-date/assets/translations/zh_TW/index.ts b/feature-libs/estimated-delivery-date/assets/translations/zh_TW/index.ts new file mode 100644 index 00000000000..273cd72e411 --- /dev/null +++ b/feature-libs/estimated-delivery-date/assets/translations/zh_TW/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import estimatedDeliveryDate from './estimatedDeliveryDate.json'; +export const zh_TW = { + estimatedDeliveryDate, +}; diff --git a/feature-libs/order/assets/translations/cs/index.ts b/feature-libs/order/assets/translations/cs/index.ts new file mode 100644 index 00000000000..94ddb44f085 --- /dev/null +++ b/feature-libs/order/assets/translations/cs/index.ts @@ -0,0 +1,12 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import myAccountV2Order from './myAccountV2Order.json'; +import order from './order.json'; +export const cs = { + myAccountV2Order, + order, +}; diff --git a/feature-libs/order/assets/translations/de/index.ts b/feature-libs/order/assets/translations/de/index.ts index f1695a944bf..40ce405add0 100644 --- a/feature-libs/order/assets/translations/de/index.ts +++ b/feature-libs/order/assets/translations/de/index.ts @@ -6,8 +6,7 @@ import myAccountV2Order from './myAccountV2Order.json'; import order from './order.json'; - export const de = { - order, myAccountV2Order, + order, }; diff --git a/feature-libs/order/assets/translations/en/index.ts b/feature-libs/order/assets/translations/en/index.ts index 1ba41c018d8..87ef7739dff 100644 --- a/feature-libs/order/assets/translations/en/index.ts +++ b/feature-libs/order/assets/translations/en/index.ts @@ -6,8 +6,7 @@ import myAccountV2Order from './myAccountV2Order.json'; import order from './order.json'; - export const en = { - order, myAccountV2Order, + order, }; diff --git a/feature-libs/order/assets/translations/es/index.ts b/feature-libs/order/assets/translations/es/index.ts new file mode 100644 index 00000000000..66644ea71e0 --- /dev/null +++ b/feature-libs/order/assets/translations/es/index.ts @@ -0,0 +1,12 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import myAccountV2Order from './myAccountV2Order.json'; +import order from './order.json'; +export const es = { + myAccountV2Order, + order, +}; diff --git a/feature-libs/order/assets/translations/es_CO/index.ts b/feature-libs/order/assets/translations/es_CO/index.ts new file mode 100644 index 00000000000..c68d840c317 --- /dev/null +++ b/feature-libs/order/assets/translations/es_CO/index.ts @@ -0,0 +1,12 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import myAccountV2Order from './myAccountV2Order.json'; +import order from './order.json'; +export const es_CO = { + myAccountV2Order, + order, +}; diff --git a/feature-libs/order/assets/translations/fr/index.ts b/feature-libs/order/assets/translations/fr/index.ts new file mode 100644 index 00000000000..d30d0cacb66 --- /dev/null +++ b/feature-libs/order/assets/translations/fr/index.ts @@ -0,0 +1,12 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import myAccountV2Order from './myAccountV2Order.json'; +import order from './order.json'; +export const fr = { + myAccountV2Order, + order, +}; diff --git a/feature-libs/order/assets/translations/hi/index.ts b/feature-libs/order/assets/translations/hi/index.ts new file mode 100644 index 00000000000..4c19c37b2f3 --- /dev/null +++ b/feature-libs/order/assets/translations/hi/index.ts @@ -0,0 +1,12 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import myAccountV2Order from './myAccountV2Order.json'; +import order from './order.json'; +export const hi = { + myAccountV2Order, + order, +}; diff --git a/feature-libs/order/assets/translations/hu/index.ts b/feature-libs/order/assets/translations/hu/index.ts new file mode 100644 index 00000000000..264ef2ce576 --- /dev/null +++ b/feature-libs/order/assets/translations/hu/index.ts @@ -0,0 +1,12 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import myAccountV2Order from './myAccountV2Order.json'; +import order from './order.json'; +export const hu = { + myAccountV2Order, + order, +}; diff --git a/feature-libs/order/assets/translations/id/index.ts b/feature-libs/order/assets/translations/id/index.ts new file mode 100644 index 00000000000..fba8462eb5f --- /dev/null +++ b/feature-libs/order/assets/translations/id/index.ts @@ -0,0 +1,12 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import myAccountV2Order from './myAccountV2Order.json'; +import order from './order.json'; +export const id = { + myAccountV2Order, + order, +}; diff --git a/feature-libs/order/assets/translations/it/index.ts b/feature-libs/order/assets/translations/it/index.ts new file mode 100644 index 00000000000..811f258a6ad --- /dev/null +++ b/feature-libs/order/assets/translations/it/index.ts @@ -0,0 +1,12 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import myAccountV2Order from './myAccountV2Order.json'; +import order from './order.json'; +export const it = { + myAccountV2Order, + order, +}; diff --git a/feature-libs/order/assets/translations/ja/index.ts b/feature-libs/order/assets/translations/ja/index.ts index 8685ff90e8d..b09e89d7b82 100644 --- a/feature-libs/order/assets/translations/ja/index.ts +++ b/feature-libs/order/assets/translations/ja/index.ts @@ -6,8 +6,7 @@ import myAccountV2Order from './myAccountV2Order.json'; import order from './order.json'; - export const ja = { - order, myAccountV2Order, + order, }; diff --git a/feature-libs/order/assets/translations/ko/index.ts b/feature-libs/order/assets/translations/ko/index.ts new file mode 100644 index 00000000000..96dccad8c3e --- /dev/null +++ b/feature-libs/order/assets/translations/ko/index.ts @@ -0,0 +1,12 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import myAccountV2Order from './myAccountV2Order.json'; +import order from './order.json'; +export const ko = { + myAccountV2Order, + order, +}; diff --git a/feature-libs/order/assets/translations/pl/index.ts b/feature-libs/order/assets/translations/pl/index.ts new file mode 100644 index 00000000000..454ef243383 --- /dev/null +++ b/feature-libs/order/assets/translations/pl/index.ts @@ -0,0 +1,12 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import myAccountV2Order from './myAccountV2Order.json'; +import order from './order.json'; +export const pl = { + myAccountV2Order, + order, +}; diff --git a/feature-libs/order/assets/translations/pt/index.ts b/feature-libs/order/assets/translations/pt/index.ts new file mode 100644 index 00000000000..cb8104cce01 --- /dev/null +++ b/feature-libs/order/assets/translations/pt/index.ts @@ -0,0 +1,12 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import myAccountV2Order from './myAccountV2Order.json'; +import order from './order.json'; +export const pt = { + myAccountV2Order, + order, +}; diff --git a/feature-libs/order/assets/translations/ru/index.ts b/feature-libs/order/assets/translations/ru/index.ts new file mode 100644 index 00000000000..f5a21b0d899 --- /dev/null +++ b/feature-libs/order/assets/translations/ru/index.ts @@ -0,0 +1,12 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import myAccountV2Order from './myAccountV2Order.json'; +import order from './order.json'; +export const ru = { + myAccountV2Order, + order, +}; diff --git a/feature-libs/order/assets/translations/translations.ts b/feature-libs/order/assets/translations/translations.ts index a9f66486e03..4320b99991a 100644 --- a/feature-libs/order/assets/translations/translations.ts +++ b/feature-libs/order/assets/translations/translations.ts @@ -4,31 +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 orderTranslations: TranslationResources = { +/** + * @deprecated use **specific language** translations (suffixed with language code) instead, + * like in the following example: + * ```diff + * i18n: { + * - resources: orderTranslations + * + resources: { en: orderTranslationsEn } + * } + * ``` + */ +export const orderTranslations = { en, - ja, - de, - zh, }; -export const orderTranslationChunksConfig: TranslationChunksConfig = { - order: [ - 'orderDetails', - 'orderHistory', - 'AccountOrderHistoryTabContainer', - 'returnRequestList', - 'returnRequest', - 'reorder', - ], - myAccountV2Order: [ - 'myAccountV2OrderHistory', - 'myAccountV2OrderDetails', - 'myAccountV2Orders', - ], -}; +export { cs as orderTranslationsCs } from './cs/index'; +export { de as orderTranslationsDe } from './de/index'; +export { en as orderTranslationsEn } from './en/index'; +export { es as orderTranslationsEs } from './es/index'; +export { es_CO as orderTranslationsEs_CO } from './es_CO/index'; +export { fr as orderTranslationsFr } from './fr/index'; +export { hi as orderTranslationsHi } from './hi/index'; +export { hu as orderTranslationsHu } from './hu/index'; +export { id as orderTranslationsId } from './id/index'; +export { it as orderTranslationsIt } from './it/index'; +export { ja as orderTranslationsJa } from './ja/index'; +export { ko as orderTranslationsKo } from './ko/index'; +export { pl as orderTranslationsPl } from './pl/index'; +export { pt as orderTranslationsPt } from './pt/index'; +export { ru as orderTranslationsRu } from './ru/index'; +export { zh as orderTranslationsZh } from './zh/index'; +export { zh_TW as orderTranslationsZh_TW } from './zh_TW/index'; diff --git a/feature-libs/order/assets/translations/zh/index.ts b/feature-libs/order/assets/translations/zh/index.ts index 4d186135823..6be5310c0ad 100644 --- a/feature-libs/order/assets/translations/zh/index.ts +++ b/feature-libs/order/assets/translations/zh/index.ts @@ -6,8 +6,7 @@ import myAccountV2Order from './myAccountV2Order.json'; import order from './order.json'; - export const zh = { - order, myAccountV2Order, + order, }; diff --git a/feature-libs/order/assets/translations/zh_TW/index.ts b/feature-libs/order/assets/translations/zh_TW/index.ts new file mode 100644 index 00000000000..6adb832b8dd --- /dev/null +++ b/feature-libs/order/assets/translations/zh_TW/index.ts @@ -0,0 +1,12 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import myAccountV2Order from './myAccountV2Order.json'; +import order from './order.json'; +export const zh_TW = { + myAccountV2Order, + order, +}; diff --git a/feature-libs/organization/account-summary/assets/translations/cs/index.ts b/feature-libs/organization/account-summary/assets/translations/cs/index.ts new file mode 100644 index 00000000000..9b25e72f285 --- /dev/null +++ b/feature-libs/organization/account-summary/assets/translations/cs/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import accountSummary from './accountSummary.json'; +export const cs = { + accountSummary, +}; diff --git a/feature-libs/organization/account-summary/assets/translations/de/index.ts b/feature-libs/organization/account-summary/assets/translations/de/index.ts index 6c2f7bce117..6930ce038de 100644 --- a/feature-libs/organization/account-summary/assets/translations/de/index.ts +++ b/feature-libs/organization/account-summary/assets/translations/de/index.ts @@ -5,7 +5,6 @@ */ import accountSummary from './accountSummary.json'; - export const de = { accountSummary, }; diff --git a/feature-libs/organization/account-summary/assets/translations/en/index.ts b/feature-libs/organization/account-summary/assets/translations/en/index.ts index da0bcbb40a5..5de77ee1dda 100644 --- a/feature-libs/organization/account-summary/assets/translations/en/index.ts +++ b/feature-libs/organization/account-summary/assets/translations/en/index.ts @@ -5,7 +5,6 @@ */ import accountSummary from './accountSummary.json'; - export const en = { accountSummary, }; diff --git a/feature-libs/organization/account-summary/assets/translations/es/index.ts b/feature-libs/organization/account-summary/assets/translations/es/index.ts new file mode 100644 index 00000000000..43b6f3ce284 --- /dev/null +++ b/feature-libs/organization/account-summary/assets/translations/es/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import accountSummary from './accountSummary.json'; +export const es = { + accountSummary, +}; diff --git a/feature-libs/organization/account-summary/assets/translations/es_CO/index.ts b/feature-libs/organization/account-summary/assets/translations/es_CO/index.ts new file mode 100644 index 00000000000..5bb2ac34cbd --- /dev/null +++ b/feature-libs/organization/account-summary/assets/translations/es_CO/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import accountSummary from './accountSummary.json'; +export const es_CO = { + accountSummary, +}; diff --git a/feature-libs/organization/account-summary/assets/translations/fr/index.ts b/feature-libs/organization/account-summary/assets/translations/fr/index.ts new file mode 100644 index 00000000000..0d191eef338 --- /dev/null +++ b/feature-libs/organization/account-summary/assets/translations/fr/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import accountSummary from './accountSummary.json'; +export const fr = { + accountSummary, +}; diff --git a/feature-libs/organization/account-summary/assets/translations/hi/index.ts b/feature-libs/organization/account-summary/assets/translations/hi/index.ts new file mode 100644 index 00000000000..59bfe6233e7 --- /dev/null +++ b/feature-libs/organization/account-summary/assets/translations/hi/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import accountSummary from './accountSummary.json'; +export const hi = { + accountSummary, +}; diff --git a/feature-libs/organization/account-summary/assets/translations/hu/index.ts b/feature-libs/organization/account-summary/assets/translations/hu/index.ts new file mode 100644 index 00000000000..3e659a8d9de --- /dev/null +++ b/feature-libs/organization/account-summary/assets/translations/hu/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import accountSummary from './accountSummary.json'; +export const hu = { + accountSummary, +}; diff --git a/feature-libs/organization/account-summary/assets/translations/id/index.ts b/feature-libs/organization/account-summary/assets/translations/id/index.ts new file mode 100644 index 00000000000..f4d1385664f --- /dev/null +++ b/feature-libs/organization/account-summary/assets/translations/id/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import accountSummary from './accountSummary.json'; +export const id = { + accountSummary, +}; diff --git a/feature-libs/organization/account-summary/assets/translations/it/index.ts b/feature-libs/organization/account-summary/assets/translations/it/index.ts new file mode 100644 index 00000000000..5ba4858ee72 --- /dev/null +++ b/feature-libs/organization/account-summary/assets/translations/it/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import accountSummary from './accountSummary.json'; +export const it = { + accountSummary, +}; diff --git a/feature-libs/organization/account-summary/assets/translations/ja/index.ts b/feature-libs/organization/account-summary/assets/translations/ja/index.ts index b43e1c181e0..f74092cce44 100644 --- a/feature-libs/organization/account-summary/assets/translations/ja/index.ts +++ b/feature-libs/organization/account-summary/assets/translations/ja/index.ts @@ -5,7 +5,6 @@ */ import accountSummary from './accountSummary.json'; - export const ja = { accountSummary, }; diff --git a/feature-libs/organization/account-summary/assets/translations/ko/index.ts b/feature-libs/organization/account-summary/assets/translations/ko/index.ts new file mode 100644 index 00000000000..9f5986db79e --- /dev/null +++ b/feature-libs/organization/account-summary/assets/translations/ko/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import accountSummary from './accountSummary.json'; +export const ko = { + accountSummary, +}; diff --git a/feature-libs/organization/account-summary/assets/translations/pl/index.ts b/feature-libs/organization/account-summary/assets/translations/pl/index.ts new file mode 100644 index 00000000000..632f5319dd2 --- /dev/null +++ b/feature-libs/organization/account-summary/assets/translations/pl/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import accountSummary from './accountSummary.json'; +export const pl = { + accountSummary, +}; diff --git a/feature-libs/organization/account-summary/assets/translations/pt/index.ts b/feature-libs/organization/account-summary/assets/translations/pt/index.ts new file mode 100644 index 00000000000..2db1220755c --- /dev/null +++ b/feature-libs/organization/account-summary/assets/translations/pt/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import accountSummary from './accountSummary.json'; +export const pt = { + accountSummary, +}; diff --git a/feature-libs/organization/account-summary/assets/translations/ru/index.ts b/feature-libs/organization/account-summary/assets/translations/ru/index.ts new file mode 100644 index 00000000000..1834f0cd9ca --- /dev/null +++ b/feature-libs/organization/account-summary/assets/translations/ru/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import accountSummary from './accountSummary.json'; +export const ru = { + accountSummary, +}; diff --git a/feature-libs/organization/account-summary/assets/translations/translations.ts b/feature-libs/organization/account-summary/assets/translations/translations.ts index e5041c3e04a..c603b5ae506 100644 --- a/feature-libs/organization/account-summary/assets/translations/translations.ts +++ b/feature-libs/organization/account-summary/assets/translations/translations.ts @@ -4,19 +4,36 @@ * SPDX-License-Identifier: Apache-2.0 */ -import { TranslationChunksConfig, TranslationResources } from '@spartacus/core'; -import { en } from './en'; -import { ja } from './ja'; -import { de } from './de'; -import { zh } from './zh'; +import { en } from './en/index'; -export const accountSummaryTranslations: TranslationResources = { +/** + * @deprecated use **specific language** translations (suffixed with language code) instead, + * like in the following example: + * ```diff + * i18n: { + * - resources: accountSummaryTranslations + * + resources: { en: accountSummaryTranslationsEn } + * } + * ``` + */ +export const accountSummaryTranslations = { en, - ja, - de, - zh, }; -export const accountSummaryTranslationChunksConfig: TranslationChunksConfig = { - accountSummary: ['orgAccountSummary', 'orgAccountSummaryList'], -}; +export { cs as accountSummaryTranslationsCs } from './cs/index'; +export { de as accountSummaryTranslationsDe } from './de/index'; +export { en as accountSummaryTranslationsEn } from './en/index'; +export { es as accountSummaryTranslationsEs } from './es/index'; +export { es_CO as accountSummaryTranslationsEs_CO } from './es_CO/index'; +export { fr as accountSummaryTranslationsFr } from './fr/index'; +export { hi as accountSummaryTranslationsHi } from './hi/index'; +export { hu as accountSummaryTranslationsHu } from './hu/index'; +export { id as accountSummaryTranslationsId } from './id/index'; +export { it as accountSummaryTranslationsIt } from './it/index'; +export { ja as accountSummaryTranslationsJa } from './ja/index'; +export { ko as accountSummaryTranslationsKo } from './ko/index'; +export { pl as accountSummaryTranslationsPl } from './pl/index'; +export { pt as accountSummaryTranslationsPt } from './pt/index'; +export { ru as accountSummaryTranslationsRu } from './ru/index'; +export { zh as accountSummaryTranslationsZh } from './zh/index'; +export { zh_TW as accountSummaryTranslationsZh_TW } from './zh_TW/index'; diff --git a/feature-libs/organization/account-summary/assets/translations/zh/index.ts b/feature-libs/organization/account-summary/assets/translations/zh/index.ts index 701fcbf6b8e..4f90187748e 100644 --- a/feature-libs/organization/account-summary/assets/translations/zh/index.ts +++ b/feature-libs/organization/account-summary/assets/translations/zh/index.ts @@ -5,7 +5,6 @@ */ import accountSummary from './accountSummary.json'; - export const zh = { accountSummary, }; diff --git a/feature-libs/organization/account-summary/assets/translations/zh_TW/index.ts b/feature-libs/organization/account-summary/assets/translations/zh_TW/index.ts new file mode 100644 index 00000000000..4817d007d13 --- /dev/null +++ b/feature-libs/organization/account-summary/assets/translations/zh_TW/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import accountSummary from './accountSummary.json'; +export const zh_TW = { + accountSummary, +}; diff --git a/feature-libs/organization/administration/assets/translations/cs/index.ts b/feature-libs/organization/administration/assets/translations/cs/index.ts new file mode 100644 index 00000000000..0b323f8c59b --- /dev/null +++ b/feature-libs/organization/administration/assets/translations/cs/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import organization from './organization.json'; +export const cs = { + organization, +}; diff --git a/feature-libs/organization/administration/assets/translations/de/index.ts b/feature-libs/organization/administration/assets/translations/de/index.ts index c57c1ad6b65..0e4e6aec886 100644 --- a/feature-libs/organization/administration/assets/translations/de/index.ts +++ b/feature-libs/organization/administration/assets/translations/de/index.ts @@ -5,7 +5,6 @@ */ import organization from './organization.json'; - export const de = { organization, }; diff --git a/feature-libs/organization/administration/assets/translations/en/index.ts b/feature-libs/organization/administration/assets/translations/en/index.ts index b0be75cff39..3cb3523b079 100644 --- a/feature-libs/organization/administration/assets/translations/en/index.ts +++ b/feature-libs/organization/administration/assets/translations/en/index.ts @@ -5,7 +5,6 @@ */ import organization from './organization.json'; - export const en = { organization, }; diff --git a/feature-libs/organization/administration/assets/translations/es/index.ts b/feature-libs/organization/administration/assets/translations/es/index.ts new file mode 100644 index 00000000000..7452f7e78ef --- /dev/null +++ b/feature-libs/organization/administration/assets/translations/es/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import organization from './organization.json'; +export const es = { + organization, +}; diff --git a/feature-libs/organization/administration/assets/translations/es_CO/index.ts b/feature-libs/organization/administration/assets/translations/es_CO/index.ts new file mode 100644 index 00000000000..ece1b6cee87 --- /dev/null +++ b/feature-libs/organization/administration/assets/translations/es_CO/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import organization from './organization.json'; +export const es_CO = { + organization, +}; diff --git a/feature-libs/organization/administration/assets/translations/fr/index.ts b/feature-libs/organization/administration/assets/translations/fr/index.ts new file mode 100644 index 00000000000..fcace3fcdc3 --- /dev/null +++ b/feature-libs/organization/administration/assets/translations/fr/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import organization from './organization.json'; +export const fr = { + organization, +}; diff --git a/feature-libs/organization/administration/assets/translations/hi/index.ts b/feature-libs/organization/administration/assets/translations/hi/index.ts new file mode 100644 index 00000000000..6f41de8cc9b --- /dev/null +++ b/feature-libs/organization/administration/assets/translations/hi/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import organization from './organization.json'; +export const hi = { + organization, +}; diff --git a/feature-libs/organization/administration/assets/translations/hu/index.ts b/feature-libs/organization/administration/assets/translations/hu/index.ts new file mode 100644 index 00000000000..606c4f23887 --- /dev/null +++ b/feature-libs/organization/administration/assets/translations/hu/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import organization from './organization.json'; +export const hu = { + organization, +}; diff --git a/feature-libs/organization/administration/assets/translations/id/index.ts b/feature-libs/organization/administration/assets/translations/id/index.ts new file mode 100644 index 00000000000..d86d3451221 --- /dev/null +++ b/feature-libs/organization/administration/assets/translations/id/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import organization from './organization.json'; +export const id = { + organization, +}; diff --git a/feature-libs/organization/administration/assets/translations/it/index.ts b/feature-libs/organization/administration/assets/translations/it/index.ts new file mode 100644 index 00000000000..a7e698168e3 --- /dev/null +++ b/feature-libs/organization/administration/assets/translations/it/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import organization from './organization.json'; +export const it = { + organization, +}; diff --git a/feature-libs/organization/administration/assets/translations/ja/index.ts b/feature-libs/organization/administration/assets/translations/ja/index.ts index 2638b903904..f47fe395fc6 100644 --- a/feature-libs/organization/administration/assets/translations/ja/index.ts +++ b/feature-libs/organization/administration/assets/translations/ja/index.ts @@ -5,7 +5,6 @@ */ import organization from './organization.json'; - export const ja = { organization, }; diff --git a/feature-libs/organization/administration/assets/translations/ko/index.ts b/feature-libs/organization/administration/assets/translations/ko/index.ts new file mode 100644 index 00000000000..e4a84ecb2f1 --- /dev/null +++ b/feature-libs/organization/administration/assets/translations/ko/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import organization from './organization.json'; +export const ko = { + organization, +}; diff --git a/feature-libs/organization/administration/assets/translations/pl/index.ts b/feature-libs/organization/administration/assets/translations/pl/index.ts new file mode 100644 index 00000000000..4cecf0582a4 --- /dev/null +++ b/feature-libs/organization/administration/assets/translations/pl/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import organization from './organization.json'; +export const pl = { + organization, +}; diff --git a/feature-libs/organization/administration/assets/translations/pt/index.ts b/feature-libs/organization/administration/assets/translations/pt/index.ts new file mode 100644 index 00000000000..686426ddc8a --- /dev/null +++ b/feature-libs/organization/administration/assets/translations/pt/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import organization from './organization.json'; +export const pt = { + organization, +}; diff --git a/feature-libs/organization/administration/assets/translations/ru/index.ts b/feature-libs/organization/administration/assets/translations/ru/index.ts new file mode 100644 index 00000000000..9c177b85896 --- /dev/null +++ b/feature-libs/organization/administration/assets/translations/ru/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import organization from './organization.json'; +export const ru = { + organization, +}; diff --git a/feature-libs/organization/administration/assets/translations/translations.ts b/feature-libs/organization/administration/assets/translations/translations.ts index e2d408ac00b..f982244bdc4 100644 --- a/feature-libs/organization/administration/assets/translations/translations.ts +++ b/feature-libs/organization/administration/assets/translations/translations.ts @@ -4,50 +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 organizationTranslations: TranslationResources = { +/** + * @deprecated use **specific language** translations (suffixed with language code) instead, + * like in the following example: + * ```diff + * i18n: { + * - resources: organizationTranslations + * + resources: { en: organizationTranslationsEn } + * } + * ``` + */ +export const organizationTranslations = { en, - ja, - de, - zh, }; -// expose all translation chunk mapping for organization sub features -export const organizationTranslationChunksConfig: TranslationChunksConfig = { - organization: [ - 'orgBudget', - 'orgBudgetAssignedCostCenters', - 'orgCostCenter', - 'orgCostCenterBudgets', - 'orgCostCenterAssignedBudgets', - 'orgUnit', - 'orgUnitChildren', - 'orgUnitAssignedRoles', - 'orgUnitApprovers', - 'orgUnitAssignedApprovers', - 'orgUnitCostCenters', - 'orgUnitUsers', - 'orgUnitUserRoles', - 'orgUnitAssignedUsers', - 'orgUnitAddress', - - 'orgUserGroup', - 'orgUserGroupUsers', - 'orgUserGroupAssignedUsers', - 'orgUserGroupPermissions', - 'orgUserGroupAssignedPermissions', - 'orgUser', - 'orgUserApprovers', - 'orgUserAssignedApprovers', - 'orgUserPermissions', - 'orgUserAssignedPermissions', - 'orgUserUserGroups', - 'orgUserAssignedUserGroups', - 'orgPurchaseLimit', - ], -}; +export { cs as organizationTranslationsCs } from './cs/index'; +export { de as organizationTranslationsDe } from './de/index'; +export { en as organizationTranslationsEn } from './en/index'; +export { es as organizationTranslationsEs } from './es/index'; +export { es_CO as organizationTranslationsEs_CO } from './es_CO/index'; +export { fr as organizationTranslationsFr } from './fr/index'; +export { hi as organizationTranslationsHi } from './hi/index'; +export { hu as organizationTranslationsHu } from './hu/index'; +export { id as organizationTranslationsId } from './id/index'; +export { it as organizationTranslationsIt } from './it/index'; +export { ja as organizationTranslationsJa } from './ja/index'; +export { ko as organizationTranslationsKo } from './ko/index'; +export { pl as organizationTranslationsPl } from './pl/index'; +export { pt as organizationTranslationsPt } from './pt/index'; +export { ru as organizationTranslationsRu } from './ru/index'; +export { zh as organizationTranslationsZh } from './zh/index'; +export { zh_TW as organizationTranslationsZh_TW } from './zh_TW/index'; diff --git a/feature-libs/organization/administration/assets/translations/zh/index.ts b/feature-libs/organization/administration/assets/translations/zh/index.ts index 7811831ac1b..4a2e290bc8e 100644 --- a/feature-libs/organization/administration/assets/translations/zh/index.ts +++ b/feature-libs/organization/administration/assets/translations/zh/index.ts @@ -5,7 +5,6 @@ */ import organization from './organization.json'; - export const zh = { organization, }; diff --git a/feature-libs/organization/administration/assets/translations/zh_TW/index.ts b/feature-libs/organization/administration/assets/translations/zh_TW/index.ts new file mode 100644 index 00000000000..04a8107249a --- /dev/null +++ b/feature-libs/organization/administration/assets/translations/zh_TW/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import organization from './organization.json'; +export const zh_TW = { + organization, +}; diff --git a/feature-libs/organization/order-approval/assets/translations/cs/index.ts b/feature-libs/organization/order-approval/assets/translations/cs/index.ts new file mode 100644 index 00000000000..ee880d8d1cf --- /dev/null +++ b/feature-libs/organization/order-approval/assets/translations/cs/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import orderApproval from './orderApproval.json'; +export const cs = { + orderApproval, +}; diff --git a/feature-libs/organization/order-approval/assets/translations/de/index.ts b/feature-libs/organization/order-approval/assets/translations/de/index.ts index 9b496b8a025..56f30e18a55 100644 --- a/feature-libs/organization/order-approval/assets/translations/de/index.ts +++ b/feature-libs/organization/order-approval/assets/translations/de/index.ts @@ -5,7 +5,6 @@ */ import orderApproval from './orderApproval.json'; - export const de = { orderApproval, }; diff --git a/feature-libs/organization/order-approval/assets/translations/en/index.ts b/feature-libs/organization/order-approval/assets/translations/en/index.ts index b5879eeab5e..49645b03844 100644 --- a/feature-libs/organization/order-approval/assets/translations/en/index.ts +++ b/feature-libs/organization/order-approval/assets/translations/en/index.ts @@ -5,7 +5,6 @@ */ import orderApproval from './orderApproval.json'; - export const en = { orderApproval, }; diff --git a/feature-libs/organization/order-approval/assets/translations/es/index.ts b/feature-libs/organization/order-approval/assets/translations/es/index.ts new file mode 100644 index 00000000000..1ce1bfd18b0 --- /dev/null +++ b/feature-libs/organization/order-approval/assets/translations/es/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import orderApproval from './orderApproval.json'; +export const es = { + orderApproval, +}; diff --git a/feature-libs/organization/order-approval/assets/translations/es_CO/index.ts b/feature-libs/organization/order-approval/assets/translations/es_CO/index.ts new file mode 100644 index 00000000000..581f9483d01 --- /dev/null +++ b/feature-libs/organization/order-approval/assets/translations/es_CO/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import orderApproval from './orderApproval.json'; +export const es_CO = { + orderApproval, +}; diff --git a/feature-libs/organization/order-approval/assets/translations/fr/index.ts b/feature-libs/organization/order-approval/assets/translations/fr/index.ts new file mode 100644 index 00000000000..52b372a31f1 --- /dev/null +++ b/feature-libs/organization/order-approval/assets/translations/fr/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import orderApproval from './orderApproval.json'; +export const fr = { + orderApproval, +}; diff --git a/feature-libs/organization/order-approval/assets/translations/hi/index.ts b/feature-libs/organization/order-approval/assets/translations/hi/index.ts new file mode 100644 index 00000000000..e50f610a82a --- /dev/null +++ b/feature-libs/organization/order-approval/assets/translations/hi/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import orderApproval from './orderApproval.json'; +export const hi = { + orderApproval, +}; diff --git a/feature-libs/organization/order-approval/assets/translations/hu/index.ts b/feature-libs/organization/order-approval/assets/translations/hu/index.ts new file mode 100644 index 00000000000..e427ef18d30 --- /dev/null +++ b/feature-libs/organization/order-approval/assets/translations/hu/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import orderApproval from './orderApproval.json'; +export const hu = { + orderApproval, +}; diff --git a/feature-libs/organization/order-approval/assets/translations/id/index.ts b/feature-libs/organization/order-approval/assets/translations/id/index.ts new file mode 100644 index 00000000000..57eb470737d --- /dev/null +++ b/feature-libs/organization/order-approval/assets/translations/id/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import orderApproval from './orderApproval.json'; +export const id = { + orderApproval, +}; diff --git a/feature-libs/organization/order-approval/assets/translations/it/index.ts b/feature-libs/organization/order-approval/assets/translations/it/index.ts new file mode 100644 index 00000000000..537d254b0f1 --- /dev/null +++ b/feature-libs/organization/order-approval/assets/translations/it/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import orderApproval from './orderApproval.json'; +export const it = { + orderApproval, +}; diff --git a/feature-libs/organization/order-approval/assets/translations/ja/index.ts b/feature-libs/organization/order-approval/assets/translations/ja/index.ts index ea5930f6679..f565e47cf61 100644 --- a/feature-libs/organization/order-approval/assets/translations/ja/index.ts +++ b/feature-libs/organization/order-approval/assets/translations/ja/index.ts @@ -5,7 +5,6 @@ */ import orderApproval from './orderApproval.json'; - export const ja = { orderApproval, }; diff --git a/feature-libs/organization/order-approval/assets/translations/ko/index.ts b/feature-libs/organization/order-approval/assets/translations/ko/index.ts new file mode 100644 index 00000000000..d629b735fe8 --- /dev/null +++ b/feature-libs/organization/order-approval/assets/translations/ko/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import orderApproval from './orderApproval.json'; +export const ko = { + orderApproval, +}; diff --git a/feature-libs/organization/order-approval/assets/translations/pl/index.ts b/feature-libs/organization/order-approval/assets/translations/pl/index.ts new file mode 100644 index 00000000000..1221394adb5 --- /dev/null +++ b/feature-libs/organization/order-approval/assets/translations/pl/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import orderApproval from './orderApproval.json'; +export const pl = { + orderApproval, +}; diff --git a/feature-libs/organization/order-approval/assets/translations/pt/index.ts b/feature-libs/organization/order-approval/assets/translations/pt/index.ts new file mode 100644 index 00000000000..4e343e1da5a --- /dev/null +++ b/feature-libs/organization/order-approval/assets/translations/pt/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import orderApproval from './orderApproval.json'; +export const pt = { + orderApproval, +}; diff --git a/feature-libs/organization/order-approval/assets/translations/ru/index.ts b/feature-libs/organization/order-approval/assets/translations/ru/index.ts new file mode 100644 index 00000000000..7ef41acd8ca --- /dev/null +++ b/feature-libs/organization/order-approval/assets/translations/ru/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import orderApproval from './orderApproval.json'; +export const ru = { + orderApproval, +}; diff --git a/feature-libs/organization/order-approval/assets/translations/translations.ts b/feature-libs/organization/order-approval/assets/translations/translations.ts index 28102ed63b6..7142bfb34d1 100644 --- a/feature-libs/organization/order-approval/assets/translations/translations.ts +++ b/feature-libs/organization/order-approval/assets/translations/translations.ts @@ -4,24 +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 orderApprovalTranslations: TranslationResources = { +/** + * @deprecated use **specific language** translations (suffixed with language code) instead, + * like in the following example: + * ```diff + * i18n: { + * - resources: orderApprovalTranslations + * + resources: { en: orderApprovalTranslationsEn } + * } + * ``` + */ +export const orderApprovalTranslations = { en, - ja, - de, - zh, }; -// expose all translation chunk mapping for orderApproval feature -export const orderApprovalTranslationChunksConfig: TranslationChunksConfig = { - orderApproval: [ - 'orderApprovalDetails', - 'orderApprovalList', - 'orderApprovalGlobal', - ], -}; +export { cs as orderApprovalTranslationsCs } from './cs/index'; +export { de as orderApprovalTranslationsDe } from './de/index'; +export { en as orderApprovalTranslationsEn } from './en/index'; +export { es as orderApprovalTranslationsEs } from './es/index'; +export { es_CO as orderApprovalTranslationsEs_CO } from './es_CO/index'; +export { fr as orderApprovalTranslationsFr } from './fr/index'; +export { hi as orderApprovalTranslationsHi } from './hi/index'; +export { hu as orderApprovalTranslationsHu } from './hu/index'; +export { id as orderApprovalTranslationsId } from './id/index'; +export { it as orderApprovalTranslationsIt } from './it/index'; +export { ja as orderApprovalTranslationsJa } from './ja/index'; +export { ko as orderApprovalTranslationsKo } from './ko/index'; +export { pl as orderApprovalTranslationsPl } from './pl/index'; +export { pt as orderApprovalTranslationsPt } from './pt/index'; +export { ru as orderApprovalTranslationsRu } from './ru/index'; +export { zh as orderApprovalTranslationsZh } from './zh/index'; +export { zh_TW as orderApprovalTranslationsZh_TW } from './zh_TW/index'; diff --git a/feature-libs/organization/order-approval/assets/translations/zh/index.ts b/feature-libs/organization/order-approval/assets/translations/zh/index.ts index fa76e823529..50d2752290a 100644 --- a/feature-libs/organization/order-approval/assets/translations/zh/index.ts +++ b/feature-libs/organization/order-approval/assets/translations/zh/index.ts @@ -5,7 +5,6 @@ */ import orderApproval from './orderApproval.json'; - export const zh = { orderApproval, }; diff --git a/feature-libs/organization/order-approval/assets/translations/zh_TW/index.ts b/feature-libs/organization/order-approval/assets/translations/zh_TW/index.ts new file mode 100644 index 00000000000..7f4cffe1dfb --- /dev/null +++ b/feature-libs/organization/order-approval/assets/translations/zh_TW/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import orderApproval from './orderApproval.json'; +export const zh_TW = { + orderApproval, +}; diff --git a/feature-libs/organization/unit-order/assets/translations/cs/index.ts b/feature-libs/organization/unit-order/assets/translations/cs/index.ts new file mode 100644 index 00000000000..61ca184c6aa --- /dev/null +++ b/feature-libs/organization/unit-order/assets/translations/cs/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import unitOrder from './unitOrder.json'; +export const cs = { + unitOrder, +}; diff --git a/feature-libs/organization/unit-order/assets/translations/de/index.ts b/feature-libs/organization/unit-order/assets/translations/de/index.ts index f6d45a16a10..6147e4ebfbb 100644 --- a/feature-libs/organization/unit-order/assets/translations/de/index.ts +++ b/feature-libs/organization/unit-order/assets/translations/de/index.ts @@ -5,7 +5,6 @@ */ import unitOrder from './unitOrder.json'; - export const de = { unitOrder, }; diff --git a/feature-libs/organization/unit-order/assets/translations/en/index.ts b/feature-libs/organization/unit-order/assets/translations/en/index.ts index 1c373a7fb7a..fb927c5f95a 100644 --- a/feature-libs/organization/unit-order/assets/translations/en/index.ts +++ b/feature-libs/organization/unit-order/assets/translations/en/index.ts @@ -5,7 +5,6 @@ */ import unitOrder from './unitOrder.json'; - export const en = { unitOrder, }; diff --git a/feature-libs/organization/unit-order/assets/translations/es/index.ts b/feature-libs/organization/unit-order/assets/translations/es/index.ts new file mode 100644 index 00000000000..3ef9ee81e55 --- /dev/null +++ b/feature-libs/organization/unit-order/assets/translations/es/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import unitOrder from './unitOrder.json'; +export const es = { + unitOrder, +}; diff --git a/feature-libs/organization/unit-order/assets/translations/es_CO/index.ts b/feature-libs/organization/unit-order/assets/translations/es_CO/index.ts new file mode 100644 index 00000000000..b4f89faba6d --- /dev/null +++ b/feature-libs/organization/unit-order/assets/translations/es_CO/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import unitOrder from './unitOrder.json'; +export const es_CO = { + unitOrder, +}; diff --git a/feature-libs/organization/unit-order/assets/translations/fr/index.ts b/feature-libs/organization/unit-order/assets/translations/fr/index.ts new file mode 100644 index 00000000000..a6268fbb0a7 --- /dev/null +++ b/feature-libs/organization/unit-order/assets/translations/fr/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import unitOrder from './unitOrder.json'; +export const fr = { + unitOrder, +}; diff --git a/feature-libs/organization/unit-order/assets/translations/hi/index.ts b/feature-libs/organization/unit-order/assets/translations/hi/index.ts new file mode 100644 index 00000000000..6c9e991e6fd --- /dev/null +++ b/feature-libs/organization/unit-order/assets/translations/hi/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import unitOrder from './unitOrder.json'; +export const hi = { + unitOrder, +}; diff --git a/feature-libs/organization/unit-order/assets/translations/hu/index.ts b/feature-libs/organization/unit-order/assets/translations/hu/index.ts new file mode 100644 index 00000000000..cc60710b7a4 --- /dev/null +++ b/feature-libs/organization/unit-order/assets/translations/hu/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import unitOrder from './unitOrder.json'; +export const hu = { + unitOrder, +}; diff --git a/feature-libs/organization/unit-order/assets/translations/id/index.ts b/feature-libs/organization/unit-order/assets/translations/id/index.ts new file mode 100644 index 00000000000..1b31fdf48b7 --- /dev/null +++ b/feature-libs/organization/unit-order/assets/translations/id/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import unitOrder from './unitOrder.json'; +export const id = { + unitOrder, +}; diff --git a/feature-libs/organization/unit-order/assets/translations/it/index.ts b/feature-libs/organization/unit-order/assets/translations/it/index.ts new file mode 100644 index 00000000000..fbf457a9bfe --- /dev/null +++ b/feature-libs/organization/unit-order/assets/translations/it/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import unitOrder from './unitOrder.json'; +export const it = { + unitOrder, +}; diff --git a/feature-libs/organization/unit-order/assets/translations/ja/index.ts b/feature-libs/organization/unit-order/assets/translations/ja/index.ts index f048515b8da..0f04edc289b 100644 --- a/feature-libs/organization/unit-order/assets/translations/ja/index.ts +++ b/feature-libs/organization/unit-order/assets/translations/ja/index.ts @@ -5,7 +5,6 @@ */ import unitOrder from './unitOrder.json'; - export const ja = { unitOrder, }; diff --git a/feature-libs/organization/unit-order/assets/translations/ko/index.ts b/feature-libs/organization/unit-order/assets/translations/ko/index.ts new file mode 100644 index 00000000000..62932fba463 --- /dev/null +++ b/feature-libs/organization/unit-order/assets/translations/ko/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import unitOrder from './unitOrder.json'; +export const ko = { + unitOrder, +}; diff --git a/feature-libs/organization/unit-order/assets/translations/pl/index.ts b/feature-libs/organization/unit-order/assets/translations/pl/index.ts new file mode 100644 index 00000000000..3ddf26777ed --- /dev/null +++ b/feature-libs/organization/unit-order/assets/translations/pl/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import unitOrder from './unitOrder.json'; +export const pl = { + unitOrder, +}; diff --git a/feature-libs/organization/unit-order/assets/translations/pt/index.ts b/feature-libs/organization/unit-order/assets/translations/pt/index.ts new file mode 100644 index 00000000000..c8d8b0dfa28 --- /dev/null +++ b/feature-libs/organization/unit-order/assets/translations/pt/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import unitOrder from './unitOrder.json'; +export const pt = { + unitOrder, +}; diff --git a/feature-libs/organization/unit-order/assets/translations/ru/index.ts b/feature-libs/organization/unit-order/assets/translations/ru/index.ts new file mode 100644 index 00000000000..8885d58259c --- /dev/null +++ b/feature-libs/organization/unit-order/assets/translations/ru/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import unitOrder from './unitOrder.json'; +export const ru = { + unitOrder, +}; diff --git a/feature-libs/organization/unit-order/assets/translations/translations.ts b/feature-libs/organization/unit-order/assets/translations/translations.ts index a4e9065cd32..e92bb8f438e 100644 --- a/feature-libs/organization/unit-order/assets/translations/translations.ts +++ b/feature-libs/organization/unit-order/assets/translations/translations.ts @@ -4,24 +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 unitOrderTranslations: TranslationResources = { +/** + * @deprecated use **specific language** translations (suffixed with language code) instead, + * like in the following example: + * ```diff + * i18n: { + * - resources: unitOrderTranslations + * + resources: { en: unitOrderTranslationsEn } + * } + * ``` + */ +export const unitOrderTranslations = { en, - ja, - de, - zh, }; -// expose all translation chunk mapping for Unit-Level Order feature -export const unitOrderTranslationChunksConfig: TranslationChunksConfig = { - unitOrder: [ - 'unitLevelOrderHistory', - 'unitLevelOrderHistorySorting', - 'unitLevelOrderDetails', - ], -}; +export { cs as unitOrderTranslationsCs } from './cs/index'; +export { de as unitOrderTranslationsDe } from './de/index'; +export { en as unitOrderTranslationsEn } from './en/index'; +export { es as unitOrderTranslationsEs } from './es/index'; +export { es_CO as unitOrderTranslationsEs_CO } from './es_CO/index'; +export { fr as unitOrderTranslationsFr } from './fr/index'; +export { hi as unitOrderTranslationsHi } from './hi/index'; +export { hu as unitOrderTranslationsHu } from './hu/index'; +export { id as unitOrderTranslationsId } from './id/index'; +export { it as unitOrderTranslationsIt } from './it/index'; +export { ja as unitOrderTranslationsJa } from './ja/index'; +export { ko as unitOrderTranslationsKo } from './ko/index'; +export { pl as unitOrderTranslationsPl } from './pl/index'; +export { pt as unitOrderTranslationsPt } from './pt/index'; +export { ru as unitOrderTranslationsRu } from './ru/index'; +export { zh as unitOrderTranslationsZh } from './zh/index'; +export { zh_TW as unitOrderTranslationsZh_TW } from './zh_TW/index'; diff --git a/feature-libs/organization/unit-order/assets/translations/zh/index.ts b/feature-libs/organization/unit-order/assets/translations/zh/index.ts index ccaa1d9122f..1b53fee3b62 100644 --- a/feature-libs/organization/unit-order/assets/translations/zh/index.ts +++ b/feature-libs/organization/unit-order/assets/translations/zh/index.ts @@ -5,7 +5,6 @@ */ import unitOrder from './unitOrder.json'; - export const zh = { unitOrder, }; diff --git a/feature-libs/organization/unit-order/assets/translations/zh_TW/index.ts b/feature-libs/organization/unit-order/assets/translations/zh_TW/index.ts new file mode 100644 index 00000000000..649f95002b1 --- /dev/null +++ b/feature-libs/organization/unit-order/assets/translations/zh_TW/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import unitOrder from './unitOrder.json'; +export const zh_TW = { + unitOrder, +}; diff --git a/feature-libs/organization/user-registration/assets/translations/cs/index.ts b/feature-libs/organization/user-registration/assets/translations/cs/index.ts new file mode 100644 index 00000000000..507e4be6a59 --- /dev/null +++ b/feature-libs/organization/user-registration/assets/translations/cs/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import userRegistration from './userRegistration.json'; +export const cs = { + userRegistration, +}; diff --git a/feature-libs/organization/user-registration/assets/translations/de/index.ts b/feature-libs/organization/user-registration/assets/translations/de/index.ts index 5d21d3e97b8..1f8ae246237 100644 --- a/feature-libs/organization/user-registration/assets/translations/de/index.ts +++ b/feature-libs/organization/user-registration/assets/translations/de/index.ts @@ -5,7 +5,6 @@ */ import userRegistration from './userRegistration.json'; - export const de = { userRegistration, }; diff --git a/feature-libs/organization/user-registration/assets/translations/en/index.ts b/feature-libs/organization/user-registration/assets/translations/en/index.ts index 1224bd0b290..2314fa3f141 100644 --- a/feature-libs/organization/user-registration/assets/translations/en/index.ts +++ b/feature-libs/organization/user-registration/assets/translations/en/index.ts @@ -5,7 +5,6 @@ */ import userRegistration from './userRegistration.json'; - export const en = { userRegistration, }; diff --git a/feature-libs/organization/user-registration/assets/translations/es/index.ts b/feature-libs/organization/user-registration/assets/translations/es/index.ts new file mode 100644 index 00000000000..b68d0a7c21f --- /dev/null +++ b/feature-libs/organization/user-registration/assets/translations/es/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import userRegistration from './userRegistration.json'; +export const es = { + userRegistration, +}; diff --git a/feature-libs/organization/user-registration/assets/translations/es_CO/index.ts b/feature-libs/organization/user-registration/assets/translations/es_CO/index.ts new file mode 100644 index 00000000000..0a95a40d686 --- /dev/null +++ b/feature-libs/organization/user-registration/assets/translations/es_CO/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import userRegistration from './userRegistration.json'; +export const es_CO = { + userRegistration, +}; diff --git a/feature-libs/organization/user-registration/assets/translations/fr/index.ts b/feature-libs/organization/user-registration/assets/translations/fr/index.ts new file mode 100644 index 00000000000..591f6e32781 --- /dev/null +++ b/feature-libs/organization/user-registration/assets/translations/fr/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import userRegistration from './userRegistration.json'; +export const fr = { + userRegistration, +}; diff --git a/feature-libs/organization/user-registration/assets/translations/hi/index.ts b/feature-libs/organization/user-registration/assets/translations/hi/index.ts new file mode 100644 index 00000000000..0077bf6a9c7 --- /dev/null +++ b/feature-libs/organization/user-registration/assets/translations/hi/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import userRegistration from './userRegistration.json'; +export const hi = { + userRegistration, +}; diff --git a/feature-libs/organization/user-registration/assets/translations/hu/index.ts b/feature-libs/organization/user-registration/assets/translations/hu/index.ts new file mode 100644 index 00000000000..8bf43bb5a7f --- /dev/null +++ b/feature-libs/organization/user-registration/assets/translations/hu/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import userRegistration from './userRegistration.json'; +export const hu = { + userRegistration, +}; diff --git a/feature-libs/organization/user-registration/assets/translations/id/index.ts b/feature-libs/organization/user-registration/assets/translations/id/index.ts new file mode 100644 index 00000000000..5523bcb89a8 --- /dev/null +++ b/feature-libs/organization/user-registration/assets/translations/id/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import userRegistration from './userRegistration.json'; +export const id = { + userRegistration, +}; diff --git a/feature-libs/organization/user-registration/assets/translations/it/index.ts b/feature-libs/organization/user-registration/assets/translations/it/index.ts new file mode 100644 index 00000000000..1a627806b56 --- /dev/null +++ b/feature-libs/organization/user-registration/assets/translations/it/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import userRegistration from './userRegistration.json'; +export const it = { + userRegistration, +}; diff --git a/feature-libs/organization/user-registration/assets/translations/ja/index.ts b/feature-libs/organization/user-registration/assets/translations/ja/index.ts index d3eeb66f7cc..c39152ebfb2 100644 --- a/feature-libs/organization/user-registration/assets/translations/ja/index.ts +++ b/feature-libs/organization/user-registration/assets/translations/ja/index.ts @@ -5,7 +5,6 @@ */ import userRegistration from './userRegistration.json'; - export const ja = { userRegistration, }; diff --git a/feature-libs/organization/user-registration/assets/translations/ko/index.ts b/feature-libs/organization/user-registration/assets/translations/ko/index.ts new file mode 100644 index 00000000000..ec9adb1d17e --- /dev/null +++ b/feature-libs/organization/user-registration/assets/translations/ko/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import userRegistration from './userRegistration.json'; +export const ko = { + userRegistration, +}; diff --git a/feature-libs/organization/user-registration/assets/translations/pl/index.ts b/feature-libs/organization/user-registration/assets/translations/pl/index.ts new file mode 100644 index 00000000000..d7aee29a0c6 --- /dev/null +++ b/feature-libs/organization/user-registration/assets/translations/pl/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import userRegistration from './userRegistration.json'; +export const pl = { + userRegistration, +}; diff --git a/feature-libs/organization/user-registration/assets/translations/pt/index.ts b/feature-libs/organization/user-registration/assets/translations/pt/index.ts new file mode 100644 index 00000000000..ef06180186a --- /dev/null +++ b/feature-libs/organization/user-registration/assets/translations/pt/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import userRegistration from './userRegistration.json'; +export const pt = { + userRegistration, +}; diff --git a/feature-libs/organization/user-registration/assets/translations/ru/index.ts b/feature-libs/organization/user-registration/assets/translations/ru/index.ts new file mode 100644 index 00000000000..e770adb7dc2 --- /dev/null +++ b/feature-libs/organization/user-registration/assets/translations/ru/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import userRegistration from './userRegistration.json'; +export const ru = { + userRegistration, +}; diff --git a/feature-libs/organization/user-registration/assets/translations/translations.ts b/feature-libs/organization/user-registration/assets/translations/translations.ts index 63e45e9da06..18f4ade747f 100644 --- a/feature-libs/organization/user-registration/assets/translations/translations.ts +++ b/feature-libs/organization/user-registration/assets/translations/translations.ts @@ -4,20 +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 organizationUserRegistrationTranslations: TranslationResources = { +/** + * @deprecated use **specific language** translations (suffixed with language code) instead, + * like in the following example: + * ```diff + * i18n: { + * - resources: organizationUserRegistrationTranslations + * + resources: { en: organizationUserRegistrationTranslationsEn } + * } + * ``` + */ +export const organizationUserRegistrationTranslations = { en, - ja, - de, - zh, }; -export const organizationUserRegistrationTranslationChunksConfig: TranslationChunksConfig = - { - userRegistration: ['userRegistrationForm'], - }; +export { cs as organizationUserRegistrationTranslationsCs } from './cs/index'; +export { de as organizationUserRegistrationTranslationsDe } from './de/index'; +export { en as organizationUserRegistrationTranslationsEn } from './en/index'; +export { es as organizationUserRegistrationTranslationsEs } from './es/index'; +export { es_CO as organizationUserRegistrationTranslationsEs_CO } from './es_CO/index'; +export { fr as organizationUserRegistrationTranslationsFr } from './fr/index'; +export { hi as organizationUserRegistrationTranslationsHi } from './hi/index'; +export { hu as organizationUserRegistrationTranslationsHu } from './hu/index'; +export { id as organizationUserRegistrationTranslationsId } from './id/index'; +export { it as organizationUserRegistrationTranslationsIt } from './it/index'; +export { ja as organizationUserRegistrationTranslationsJa } from './ja/index'; +export { ko as organizationUserRegistrationTranslationsKo } from './ko/index'; +export { pl as organizationUserRegistrationTranslationsPl } from './pl/index'; +export { pt as organizationUserRegistrationTranslationsPt } from './pt/index'; +export { ru as organizationUserRegistrationTranslationsRu } from './ru/index'; +export { zh as organizationUserRegistrationTranslationsZh } from './zh/index'; +export { zh_TW as organizationUserRegistrationTranslationsZh_TW } from './zh_TW/index'; diff --git a/feature-libs/organization/user-registration/assets/translations/zh/index.ts b/feature-libs/organization/user-registration/assets/translations/zh/index.ts index 7fe7db22e85..a0417d93877 100644 --- a/feature-libs/organization/user-registration/assets/translations/zh/index.ts +++ b/feature-libs/organization/user-registration/assets/translations/zh/index.ts @@ -5,7 +5,6 @@ */ import userRegistration from './userRegistration.json'; - export const zh = { userRegistration, }; diff --git a/feature-libs/organization/user-registration/assets/translations/zh_TW/index.ts b/feature-libs/organization/user-registration/assets/translations/zh_TW/index.ts new file mode 100644 index 00000000000..284cfd7032f --- /dev/null +++ b/feature-libs/organization/user-registration/assets/translations/zh_TW/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import userRegistration from './userRegistration.json'; +export const zh_TW = { + userRegistration, +}; diff --git a/feature-libs/pdf-invoices/assets/translations/cs/index.ts b/feature-libs/pdf-invoices/assets/translations/cs/index.ts new file mode 100644 index 00000000000..42e0a5f693c --- /dev/null +++ b/feature-libs/pdf-invoices/assets/translations/cs/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import pdfInvoices from './pdfInvoices.json'; +export const cs = { + pdfInvoices, +}; diff --git a/feature-libs/pdf-invoices/assets/translations/de/index.ts b/feature-libs/pdf-invoices/assets/translations/de/index.ts index d6e2688ff46..a4e06f9ba12 100644 --- a/feature-libs/pdf-invoices/assets/translations/de/index.ts +++ b/feature-libs/pdf-invoices/assets/translations/de/index.ts @@ -5,7 +5,6 @@ */ import pdfInvoices from './pdfInvoices.json'; - export const de = { pdfInvoices, }; diff --git a/feature-libs/pdf-invoices/assets/translations/en/index.ts b/feature-libs/pdf-invoices/assets/translations/en/index.ts index 1f2cb83e184..28f39049a7d 100644 --- a/feature-libs/pdf-invoices/assets/translations/en/index.ts +++ b/feature-libs/pdf-invoices/assets/translations/en/index.ts @@ -5,7 +5,6 @@ */ import pdfInvoices from './pdfInvoices.json'; - export const en = { pdfInvoices, }; diff --git a/feature-libs/pdf-invoices/assets/translations/es/index.ts b/feature-libs/pdf-invoices/assets/translations/es/index.ts new file mode 100644 index 00000000000..d5ee36a496a --- /dev/null +++ b/feature-libs/pdf-invoices/assets/translations/es/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import pdfInvoices from './pdfInvoices.json'; +export const es = { + pdfInvoices, +}; diff --git a/feature-libs/pdf-invoices/assets/translations/es_CO/index.ts b/feature-libs/pdf-invoices/assets/translations/es_CO/index.ts new file mode 100644 index 00000000000..c5506cc1d90 --- /dev/null +++ b/feature-libs/pdf-invoices/assets/translations/es_CO/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import pdfInvoices from './pdfInvoices.json'; +export const es_CO = { + pdfInvoices, +}; diff --git a/feature-libs/pdf-invoices/assets/translations/fr/index.ts b/feature-libs/pdf-invoices/assets/translations/fr/index.ts new file mode 100644 index 00000000000..589706329a6 --- /dev/null +++ b/feature-libs/pdf-invoices/assets/translations/fr/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import pdfInvoices from './pdfInvoices.json'; +export const fr = { + pdfInvoices, +}; diff --git a/feature-libs/pdf-invoices/assets/translations/hi/index.ts b/feature-libs/pdf-invoices/assets/translations/hi/index.ts new file mode 100644 index 00000000000..967bdc2d9ff --- /dev/null +++ b/feature-libs/pdf-invoices/assets/translations/hi/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import pdfInvoices from './pdfInvoices.json'; +export const hi = { + pdfInvoices, +}; diff --git a/feature-libs/pdf-invoices/assets/translations/hu/index.ts b/feature-libs/pdf-invoices/assets/translations/hu/index.ts new file mode 100644 index 00000000000..79b5e51e5fb --- /dev/null +++ b/feature-libs/pdf-invoices/assets/translations/hu/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import pdfInvoices from './pdfInvoices.json'; +export const hu = { + pdfInvoices, +}; diff --git a/feature-libs/pdf-invoices/assets/translations/id/index.ts b/feature-libs/pdf-invoices/assets/translations/id/index.ts new file mode 100644 index 00000000000..817ec4753f3 --- /dev/null +++ b/feature-libs/pdf-invoices/assets/translations/id/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import pdfInvoices from './pdfInvoices.json'; +export const id = { + pdfInvoices, +}; diff --git a/feature-libs/pdf-invoices/assets/translations/it/index.ts b/feature-libs/pdf-invoices/assets/translations/it/index.ts new file mode 100644 index 00000000000..420b513e496 --- /dev/null +++ b/feature-libs/pdf-invoices/assets/translations/it/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import pdfInvoices from './pdfInvoices.json'; +export const it = { + pdfInvoices, +}; diff --git a/feature-libs/pdf-invoices/assets/translations/ja/index.ts b/feature-libs/pdf-invoices/assets/translations/ja/index.ts index 67b77ff4506..a5e82156515 100644 --- a/feature-libs/pdf-invoices/assets/translations/ja/index.ts +++ b/feature-libs/pdf-invoices/assets/translations/ja/index.ts @@ -5,7 +5,6 @@ */ import pdfInvoices from './pdfInvoices.json'; - export const ja = { pdfInvoices, }; diff --git a/feature-libs/pdf-invoices/assets/translations/ko/index.ts b/feature-libs/pdf-invoices/assets/translations/ko/index.ts new file mode 100644 index 00000000000..2e09e29da55 --- /dev/null +++ b/feature-libs/pdf-invoices/assets/translations/ko/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import pdfInvoices from './pdfInvoices.json'; +export const ko = { + pdfInvoices, +}; diff --git a/feature-libs/pdf-invoices/assets/translations/pl/index.ts b/feature-libs/pdf-invoices/assets/translations/pl/index.ts new file mode 100644 index 00000000000..0aab0a9631d --- /dev/null +++ b/feature-libs/pdf-invoices/assets/translations/pl/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import pdfInvoices from './pdfInvoices.json'; +export const pl = { + pdfInvoices, +}; diff --git a/feature-libs/pdf-invoices/assets/translations/pt/index.ts b/feature-libs/pdf-invoices/assets/translations/pt/index.ts new file mode 100644 index 00000000000..173c672fcf3 --- /dev/null +++ b/feature-libs/pdf-invoices/assets/translations/pt/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import pdfInvoices from './pdfInvoices.json'; +export const pt = { + pdfInvoices, +}; diff --git a/feature-libs/pdf-invoices/assets/translations/ru/index.ts b/feature-libs/pdf-invoices/assets/translations/ru/index.ts new file mode 100644 index 00000000000..685f43fb269 --- /dev/null +++ b/feature-libs/pdf-invoices/assets/translations/ru/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import pdfInvoices from './pdfInvoices.json'; +export const ru = { + pdfInvoices, +}; diff --git a/feature-libs/pdf-invoices/assets/translations/translations.ts b/feature-libs/pdf-invoices/assets/translations/translations.ts index ca153e9061c..26e84752fdf 100644 --- a/feature-libs/pdf-invoices/assets/translations/translations.ts +++ b/feature-libs/pdf-invoices/assets/translations/translations.ts @@ -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 pdfInvoicesTranslations: TranslationResources = { +/** + * @deprecated use **specific language** translations (suffixed with language code) instead, + * like in the following example: + * ```diff + * i18n: { + * - resources: pdfInvoicesTranslations + * + resources: { en: pdfInvoicesTranslationsEn } + * } + * ``` + */ +export const pdfInvoicesTranslations = { en, - ja, - de, - zh, }; -export const pdfInvoicesTranslationChunksConfig: TranslationChunksConfig = { - pdfInvoices: ['pdfInvoices'], -}; +export { cs as pdfInvoicesTranslationsCs } from './cs/index'; +export { de as pdfInvoicesTranslationsDe } from './de/index'; +export { en as pdfInvoicesTranslationsEn } from './en/index'; +export { es as pdfInvoicesTranslationsEs } from './es/index'; +export { es_CO as pdfInvoicesTranslationsEs_CO } from './es_CO/index'; +export { fr as pdfInvoicesTranslationsFr } from './fr/index'; +export { hi as pdfInvoicesTranslationsHi } from './hi/index'; +export { hu as pdfInvoicesTranslationsHu } from './hu/index'; +export { id as pdfInvoicesTranslationsId } from './id/index'; +export { it as pdfInvoicesTranslationsIt } from './it/index'; +export { ja as pdfInvoicesTranslationsJa } from './ja/index'; +export { ko as pdfInvoicesTranslationsKo } from './ko/index'; +export { pl as pdfInvoicesTranslationsPl } from './pl/index'; +export { pt as pdfInvoicesTranslationsPt } from './pt/index'; +export { ru as pdfInvoicesTranslationsRu } from './ru/index'; +export { zh as pdfInvoicesTranslationsZh } from './zh/index'; +export { zh_TW as pdfInvoicesTranslationsZh_TW } from './zh_TW/index'; diff --git a/feature-libs/pdf-invoices/assets/translations/zh/index.ts b/feature-libs/pdf-invoices/assets/translations/zh/index.ts index 25542a7bc23..67fe8c1ed37 100644 --- a/feature-libs/pdf-invoices/assets/translations/zh/index.ts +++ b/feature-libs/pdf-invoices/assets/translations/zh/index.ts @@ -5,7 +5,6 @@ */ import pdfInvoices from './pdfInvoices.json'; - export const zh = { pdfInvoices, }; diff --git a/feature-libs/pdf-invoices/assets/translations/zh_TW/index.ts b/feature-libs/pdf-invoices/assets/translations/zh_TW/index.ts new file mode 100644 index 00000000000..e4894824690 --- /dev/null +++ b/feature-libs/pdf-invoices/assets/translations/zh_TW/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import pdfInvoices from './pdfInvoices.json'; +export const zh_TW = { + pdfInvoices, +}; diff --git a/feature-libs/pickup-in-store/assets/translations/cs/index.ts b/feature-libs/pickup-in-store/assets/translations/cs/index.ts new file mode 100644 index 00000000000..b5a4ede4888 --- /dev/null +++ b/feature-libs/pickup-in-store/assets/translations/cs/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import pickupInStore from './pickupInStore.json'; +export const cs = { + pickupInStore, +}; diff --git a/feature-libs/pickup-in-store/assets/translations/de/index.ts b/feature-libs/pickup-in-store/assets/translations/de/index.ts index e841d58e202..eca785dcd73 100644 --- a/feature-libs/pickup-in-store/assets/translations/de/index.ts +++ b/feature-libs/pickup-in-store/assets/translations/de/index.ts @@ -5,8 +5,6 @@ */ import pickupInStore from './pickupInStore.json'; - -/** English language translations for pickup in store strings. */ export const de = { pickupInStore, }; diff --git a/feature-libs/pickup-in-store/assets/translations/en/index.ts b/feature-libs/pickup-in-store/assets/translations/en/index.ts index 3e6ab3055a4..ddc213d5384 100644 --- a/feature-libs/pickup-in-store/assets/translations/en/index.ts +++ b/feature-libs/pickup-in-store/assets/translations/en/index.ts @@ -5,8 +5,6 @@ */ import pickupInStore from './pickupInStore.json'; - -/** English language translations for pickup in store strings. */ export const en = { pickupInStore, }; diff --git a/feature-libs/pickup-in-store/assets/translations/es/index.ts b/feature-libs/pickup-in-store/assets/translations/es/index.ts new file mode 100644 index 00000000000..a81b6fe1490 --- /dev/null +++ b/feature-libs/pickup-in-store/assets/translations/es/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import pickupInStore from './pickupInStore.json'; +export const es = { + pickupInStore, +}; diff --git a/feature-libs/pickup-in-store/assets/translations/es_CO/index.ts b/feature-libs/pickup-in-store/assets/translations/es_CO/index.ts new file mode 100644 index 00000000000..4a09e5ed5cc --- /dev/null +++ b/feature-libs/pickup-in-store/assets/translations/es_CO/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import pickupInStore from './pickupInStore.json'; +export const es_CO = { + pickupInStore, +}; diff --git a/feature-libs/pickup-in-store/assets/translations/fr/index.ts b/feature-libs/pickup-in-store/assets/translations/fr/index.ts new file mode 100644 index 00000000000..5c19d346097 --- /dev/null +++ b/feature-libs/pickup-in-store/assets/translations/fr/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import pickupInStore from './pickupInStore.json'; +export const fr = { + pickupInStore, +}; diff --git a/feature-libs/pickup-in-store/assets/translations/hi/index.ts b/feature-libs/pickup-in-store/assets/translations/hi/index.ts new file mode 100644 index 00000000000..583af8c66c1 --- /dev/null +++ b/feature-libs/pickup-in-store/assets/translations/hi/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import pickupInStore from './pickupInStore.json'; +export const hi = { + pickupInStore, +}; diff --git a/feature-libs/pickup-in-store/assets/translations/hu/index.ts b/feature-libs/pickup-in-store/assets/translations/hu/index.ts new file mode 100644 index 00000000000..148f84d9004 --- /dev/null +++ b/feature-libs/pickup-in-store/assets/translations/hu/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import pickupInStore from './pickupInStore.json'; +export const hu = { + pickupInStore, +}; diff --git a/feature-libs/pickup-in-store/assets/translations/id/index.ts b/feature-libs/pickup-in-store/assets/translations/id/index.ts new file mode 100644 index 00000000000..f3b289390a4 --- /dev/null +++ b/feature-libs/pickup-in-store/assets/translations/id/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import pickupInStore from './pickupInStore.json'; +export const id = { + pickupInStore, +}; diff --git a/feature-libs/pickup-in-store/assets/translations/it/index.ts b/feature-libs/pickup-in-store/assets/translations/it/index.ts new file mode 100644 index 00000000000..9d6dd3492b6 --- /dev/null +++ b/feature-libs/pickup-in-store/assets/translations/it/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import pickupInStore from './pickupInStore.json'; +export const it = { + pickupInStore, +}; diff --git a/feature-libs/pickup-in-store/assets/translations/ja/index.ts b/feature-libs/pickup-in-store/assets/translations/ja/index.ts index 5429bc9dd9f..94afd09ecfc 100644 --- a/feature-libs/pickup-in-store/assets/translations/ja/index.ts +++ b/feature-libs/pickup-in-store/assets/translations/ja/index.ts @@ -5,8 +5,6 @@ */ import pickupInStore from './pickupInStore.json'; - -/** English language translations for pickup in store strings. */ export const ja = { pickupInStore, }; diff --git a/feature-libs/pickup-in-store/assets/translations/ko/index.ts b/feature-libs/pickup-in-store/assets/translations/ko/index.ts new file mode 100644 index 00000000000..d58d4077507 --- /dev/null +++ b/feature-libs/pickup-in-store/assets/translations/ko/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import pickupInStore from './pickupInStore.json'; +export const ko = { + pickupInStore, +}; diff --git a/feature-libs/pickup-in-store/assets/translations/pl/index.ts b/feature-libs/pickup-in-store/assets/translations/pl/index.ts new file mode 100644 index 00000000000..bb22be23a17 --- /dev/null +++ b/feature-libs/pickup-in-store/assets/translations/pl/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import pickupInStore from './pickupInStore.json'; +export const pl = { + pickupInStore, +}; diff --git a/feature-libs/pickup-in-store/assets/translations/pt/index.ts b/feature-libs/pickup-in-store/assets/translations/pt/index.ts new file mode 100644 index 00000000000..526e3f37a52 --- /dev/null +++ b/feature-libs/pickup-in-store/assets/translations/pt/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import pickupInStore from './pickupInStore.json'; +export const pt = { + pickupInStore, +}; diff --git a/feature-libs/pickup-in-store/assets/translations/ru/index.ts b/feature-libs/pickup-in-store/assets/translations/ru/index.ts new file mode 100644 index 00000000000..81f16d8b2ee --- /dev/null +++ b/feature-libs/pickup-in-store/assets/translations/ru/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import pickupInStore from './pickupInStore.json'; +export const ru = { + pickupInStore, +}; diff --git a/feature-libs/pickup-in-store/assets/translations/translations.ts b/feature-libs/pickup-in-store/assets/translations/translations.ts index 1a932336c77..125257c6a39 100644 --- a/feature-libs/pickup-in-store/assets/translations/translations.ts +++ b/feature-libs/pickup-in-store/assets/translations/translations.ts @@ -4,20 +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 pickupInStoreTranslations: TranslationResources = { +/** + * @deprecated use **specific language** translations (suffixed with language code) instead, + * like in the following example: + * ```diff + * i18n: { + * - resources: pickupInStoreTranslations + * + resources: { en: pickupInStoreTranslationsEn } + * } + * ``` + */ +export const pickupInStoreTranslations = { en, - ja, - de, - zh, }; -// expose all translation chunk mapping for the pickupInStore feature -export const pickupInStoreTranslationChunksConfig: TranslationChunksConfig = { - pickupInStore: Object.keys(en.pickupInStore), -}; +export { cs as pickupInStoreTranslationsCs } from './cs/index'; +export { de as pickupInStoreTranslationsDe } from './de/index'; +export { en as pickupInStoreTranslationsEn } from './en/index'; +export { es as pickupInStoreTranslationsEs } from './es/index'; +export { es_CO as pickupInStoreTranslationsEs_CO } from './es_CO/index'; +export { fr as pickupInStoreTranslationsFr } from './fr/index'; +export { hi as pickupInStoreTranslationsHi } from './hi/index'; +export { hu as pickupInStoreTranslationsHu } from './hu/index'; +export { id as pickupInStoreTranslationsId } from './id/index'; +export { it as pickupInStoreTranslationsIt } from './it/index'; +export { ja as pickupInStoreTranslationsJa } from './ja/index'; +export { ko as pickupInStoreTranslationsKo } from './ko/index'; +export { pl as pickupInStoreTranslationsPl } from './pl/index'; +export { pt as pickupInStoreTranslationsPt } from './pt/index'; +export { ru as pickupInStoreTranslationsRu } from './ru/index'; +export { zh as pickupInStoreTranslationsZh } from './zh/index'; +export { zh_TW as pickupInStoreTranslationsZh_TW } from './zh_TW/index'; diff --git a/feature-libs/pickup-in-store/assets/translations/zh/index.ts b/feature-libs/pickup-in-store/assets/translations/zh/index.ts index 34e7b539024..8fbf156065c 100644 --- a/feature-libs/pickup-in-store/assets/translations/zh/index.ts +++ b/feature-libs/pickup-in-store/assets/translations/zh/index.ts @@ -5,8 +5,6 @@ */ import pickupInStore from './pickupInStore.json'; - -/** English language translations for pickup in store strings. */ export const zh = { pickupInStore, }; diff --git a/feature-libs/pickup-in-store/assets/translations/zh_TW/index.ts b/feature-libs/pickup-in-store/assets/translations/zh_TW/index.ts new file mode 100644 index 00000000000..70669f6aecb --- /dev/null +++ b/feature-libs/pickup-in-store/assets/translations/zh_TW/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import pickupInStore from './pickupInStore.json'; +export const zh_TW = { + pickupInStore, +}; diff --git a/feature-libs/product-configurator/common/assets/translations/cs/index.ts b/feature-libs/product-configurator/common/assets/translations/cs/index.ts new file mode 100644 index 00000000000..25cc5151465 --- /dev/null +++ b/feature-libs/product-configurator/common/assets/translations/cs/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import configurator from './configurator.json'; +export const cs = { + configurator, +}; diff --git a/feature-libs/product-configurator/common/assets/translations/de/index.ts b/feature-libs/product-configurator/common/assets/translations/de/index.ts index e10161ccbd1..ac6864233bf 100644 --- a/feature-libs/product-configurator/common/assets/translations/de/index.ts +++ b/feature-libs/product-configurator/common/assets/translations/de/index.ts @@ -5,7 +5,6 @@ */ import configurator from './configurator.json'; - export const de = { configurator, }; diff --git a/feature-libs/product-configurator/common/assets/translations/en/index.ts b/feature-libs/product-configurator/common/assets/translations/en/index.ts index 5dc501cfe5c..8c3043a2dc7 100644 --- a/feature-libs/product-configurator/common/assets/translations/en/index.ts +++ b/feature-libs/product-configurator/common/assets/translations/en/index.ts @@ -5,7 +5,6 @@ */ import configurator from './configurator.json'; - export const en = { configurator, }; diff --git a/feature-libs/product-configurator/common/assets/translations/es/index.ts b/feature-libs/product-configurator/common/assets/translations/es/index.ts new file mode 100644 index 00000000000..1fc2f01854a --- /dev/null +++ b/feature-libs/product-configurator/common/assets/translations/es/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import configurator from './configurator.json'; +export const es = { + configurator, +}; diff --git a/feature-libs/product-configurator/common/assets/translations/es_CO/index.ts b/feature-libs/product-configurator/common/assets/translations/es_CO/index.ts new file mode 100644 index 00000000000..be38aac42b0 --- /dev/null +++ b/feature-libs/product-configurator/common/assets/translations/es_CO/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import configurator from './configurator.json'; +export const es_CO = { + configurator, +}; diff --git a/feature-libs/product-configurator/common/assets/translations/fr/index.ts b/feature-libs/product-configurator/common/assets/translations/fr/index.ts new file mode 100644 index 00000000000..d8cf941632f --- /dev/null +++ b/feature-libs/product-configurator/common/assets/translations/fr/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import configurator from './configurator.json'; +export const fr = { + configurator, +}; diff --git a/feature-libs/product-configurator/common/assets/translations/hi/index.ts b/feature-libs/product-configurator/common/assets/translations/hi/index.ts new file mode 100644 index 00000000000..3e64dad2683 --- /dev/null +++ b/feature-libs/product-configurator/common/assets/translations/hi/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import configurator from './configurator.json'; +export const hi = { + configurator, +}; diff --git a/feature-libs/product-configurator/common/assets/translations/hu/index.ts b/feature-libs/product-configurator/common/assets/translations/hu/index.ts new file mode 100644 index 00000000000..11de0406a25 --- /dev/null +++ b/feature-libs/product-configurator/common/assets/translations/hu/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import configurator from './configurator.json'; +export const hu = { + configurator, +}; diff --git a/feature-libs/product-configurator/common/assets/translations/id/index.ts b/feature-libs/product-configurator/common/assets/translations/id/index.ts new file mode 100644 index 00000000000..10ba099ce9f --- /dev/null +++ b/feature-libs/product-configurator/common/assets/translations/id/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import configurator from './configurator.json'; +export const id = { + configurator, +}; diff --git a/feature-libs/product-configurator/common/assets/translations/it/index.ts b/feature-libs/product-configurator/common/assets/translations/it/index.ts new file mode 100644 index 00000000000..0d72e62dfca --- /dev/null +++ b/feature-libs/product-configurator/common/assets/translations/it/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import configurator from './configurator.json'; +export const it = { + configurator, +}; diff --git a/feature-libs/product-configurator/common/assets/translations/ja/index.ts b/feature-libs/product-configurator/common/assets/translations/ja/index.ts index 0454daa798f..8766add999f 100644 --- a/feature-libs/product-configurator/common/assets/translations/ja/index.ts +++ b/feature-libs/product-configurator/common/assets/translations/ja/index.ts @@ -5,7 +5,6 @@ */ import configurator from './configurator.json'; - export const ja = { configurator, }; diff --git a/feature-libs/product-configurator/common/assets/translations/ko/index.ts b/feature-libs/product-configurator/common/assets/translations/ko/index.ts new file mode 100644 index 00000000000..8eba17b3250 --- /dev/null +++ b/feature-libs/product-configurator/common/assets/translations/ko/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import configurator from './configurator.json'; +export const ko = { + configurator, +}; diff --git a/feature-libs/product-configurator/common/assets/translations/pl/index.ts b/feature-libs/product-configurator/common/assets/translations/pl/index.ts new file mode 100644 index 00000000000..fb4cfe6969b --- /dev/null +++ b/feature-libs/product-configurator/common/assets/translations/pl/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import configurator from './configurator.json'; +export const pl = { + configurator, +}; diff --git a/feature-libs/product-configurator/common/assets/translations/pt/index.ts b/feature-libs/product-configurator/common/assets/translations/pt/index.ts new file mode 100644 index 00000000000..f9465cf04d4 --- /dev/null +++ b/feature-libs/product-configurator/common/assets/translations/pt/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import configurator from './configurator.json'; +export const pt = { + configurator, +}; diff --git a/feature-libs/product-configurator/common/assets/translations/ru/index.ts b/feature-libs/product-configurator/common/assets/translations/ru/index.ts new file mode 100644 index 00000000000..7871e5c3a85 --- /dev/null +++ b/feature-libs/product-configurator/common/assets/translations/ru/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import configurator from './configurator.json'; +export const ru = { + configurator, +}; diff --git a/feature-libs/product-configurator/common/assets/translations/translations.ts b/feature-libs/product-configurator/common/assets/translations/translations.ts index e3e4bdec21b..2db679ef439 100644 --- a/feature-libs/product-configurator/common/assets/translations/translations.ts +++ b/feature-libs/product-configurator/common/assets/translations/translations.ts @@ -4,17 +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 configuratorTranslations: TranslationResources = { +/** + * @deprecated use **specific language** translations (suffixed with language code) instead, + * like in the following example: + * ```diff + * i18n: { + * - resources: configuratorTranslations + * + resources: { en: configuratorTranslationsEn } + * } + * ``` + */ +export const configuratorTranslations = { en, - ja, - de, - zh, }; -//empty for now but needed for schematics support -export const configuratorTranslationChunksConfig: TranslationChunksConfig = {}; + +export { cs as configuratorTranslationsCs } from './cs/index'; +export { de as configuratorTranslationsDe } from './de/index'; +export { en as configuratorTranslationsEn } from './en/index'; +export { es as configuratorTranslationsEs } from './es/index'; +export { es_CO as configuratorTranslationsEs_CO } from './es_CO/index'; +export { fr as configuratorTranslationsFr } from './fr/index'; +export { hi as configuratorTranslationsHi } from './hi/index'; +export { hu as configuratorTranslationsHu } from './hu/index'; +export { id as configuratorTranslationsId } from './id/index'; +export { it as configuratorTranslationsIt } from './it/index'; +export { ja as configuratorTranslationsJa } from './ja/index'; +export { ko as configuratorTranslationsKo } from './ko/index'; +export { pl as configuratorTranslationsPl } from './pl/index'; +export { pt as configuratorTranslationsPt } from './pt/index'; +export { ru as configuratorTranslationsRu } from './ru/index'; +export { zh as configuratorTranslationsZh } from './zh/index'; +export { zh_TW as configuratorTranslationsZh_TW } from './zh_TW/index'; diff --git a/feature-libs/product-configurator/common/assets/translations/zh/index.ts b/feature-libs/product-configurator/common/assets/translations/zh/index.ts index 200e70c395d..c954ab2d67a 100644 --- a/feature-libs/product-configurator/common/assets/translations/zh/index.ts +++ b/feature-libs/product-configurator/common/assets/translations/zh/index.ts @@ -5,7 +5,6 @@ */ import configurator from './configurator.json'; - export const zh = { configurator, }; diff --git a/feature-libs/product-configurator/common/assets/translations/zh_TW/index.ts b/feature-libs/product-configurator/common/assets/translations/zh_TW/index.ts new file mode 100644 index 00000000000..ea2c3bc3634 --- /dev/null +++ b/feature-libs/product-configurator/common/assets/translations/zh_TW/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import configurator from './configurator.json'; +export const zh_TW = { + configurator, +}; diff --git a/feature-libs/product-multi-dimensional/selector/assets/translations/cs/index.ts b/feature-libs/product-multi-dimensional/selector/assets/translations/cs/index.ts new file mode 100644 index 00000000000..1fe29e9e954 --- /dev/null +++ b/feature-libs/product-multi-dimensional/selector/assets/translations/cs/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import multiDimensionalSelector from './multiDimensionalSelector.json'; +export const cs = { + multiDimensionalSelector, +}; diff --git a/feature-libs/product-multi-dimensional/selector/assets/translations/de/index.ts b/feature-libs/product-multi-dimensional/selector/assets/translations/de/index.ts index 40560573a67..e0711370c59 100644 --- a/feature-libs/product-multi-dimensional/selector/assets/translations/de/index.ts +++ b/feature-libs/product-multi-dimensional/selector/assets/translations/de/index.ts @@ -5,7 +5,6 @@ */ import multiDimensionalSelector from './multiDimensionalSelector.json'; - export const de = { multiDimensionalSelector, }; diff --git a/feature-libs/product-multi-dimensional/selector/assets/translations/en/index.ts b/feature-libs/product-multi-dimensional/selector/assets/translations/en/index.ts index 607be6f461b..002226f1469 100644 --- a/feature-libs/product-multi-dimensional/selector/assets/translations/en/index.ts +++ b/feature-libs/product-multi-dimensional/selector/assets/translations/en/index.ts @@ -5,7 +5,6 @@ */ import multiDimensionalSelector from './multiDimensionalSelector.json'; - export const en = { multiDimensionalSelector, }; diff --git a/feature-libs/product-multi-dimensional/selector/assets/translations/es/index.ts b/feature-libs/product-multi-dimensional/selector/assets/translations/es/index.ts new file mode 100644 index 00000000000..df3de068ddd --- /dev/null +++ b/feature-libs/product-multi-dimensional/selector/assets/translations/es/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import multiDimensionalSelector from './multiDimensionalSelector.json'; +export const es = { + multiDimensionalSelector, +}; diff --git a/feature-libs/product-multi-dimensional/selector/assets/translations/es_CO/index.ts b/feature-libs/product-multi-dimensional/selector/assets/translations/es_CO/index.ts new file mode 100644 index 00000000000..f92c7fe8b33 --- /dev/null +++ b/feature-libs/product-multi-dimensional/selector/assets/translations/es_CO/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import multiDimensionalSelector from './multiDimensionalSelector.json'; +export const es_CO = { + multiDimensionalSelector, +}; diff --git a/feature-libs/product-multi-dimensional/selector/assets/translations/fr/index.ts b/feature-libs/product-multi-dimensional/selector/assets/translations/fr/index.ts new file mode 100644 index 00000000000..7250f65f644 --- /dev/null +++ b/feature-libs/product-multi-dimensional/selector/assets/translations/fr/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import multiDimensionalSelector from './multiDimensionalSelector.json'; +export const fr = { + multiDimensionalSelector, +}; diff --git a/feature-libs/product-multi-dimensional/selector/assets/translations/hi/index.ts b/feature-libs/product-multi-dimensional/selector/assets/translations/hi/index.ts new file mode 100644 index 00000000000..45c21d95798 --- /dev/null +++ b/feature-libs/product-multi-dimensional/selector/assets/translations/hi/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import multiDimensionalSelector from './multiDimensionalSelector.json'; +export const hi = { + multiDimensionalSelector, +}; diff --git a/feature-libs/product-multi-dimensional/selector/assets/translations/hu/index.ts b/feature-libs/product-multi-dimensional/selector/assets/translations/hu/index.ts new file mode 100644 index 00000000000..e369b74300d --- /dev/null +++ b/feature-libs/product-multi-dimensional/selector/assets/translations/hu/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import multiDimensionalSelector from './multiDimensionalSelector.json'; +export const hu = { + multiDimensionalSelector, +}; diff --git a/feature-libs/product-multi-dimensional/selector/assets/translations/id/index.ts b/feature-libs/product-multi-dimensional/selector/assets/translations/id/index.ts new file mode 100644 index 00000000000..e1a15197667 --- /dev/null +++ b/feature-libs/product-multi-dimensional/selector/assets/translations/id/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import multiDimensionalSelector from './multiDimensionalSelector.json'; +export const id = { + multiDimensionalSelector, +}; diff --git a/feature-libs/product-multi-dimensional/selector/assets/translations/it/index.ts b/feature-libs/product-multi-dimensional/selector/assets/translations/it/index.ts new file mode 100644 index 00000000000..7a327ba4f8c --- /dev/null +++ b/feature-libs/product-multi-dimensional/selector/assets/translations/it/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import multiDimensionalSelector from './multiDimensionalSelector.json'; +export const it = { + multiDimensionalSelector, +}; diff --git a/feature-libs/product-multi-dimensional/selector/assets/translations/ja/index.ts b/feature-libs/product-multi-dimensional/selector/assets/translations/ja/index.ts index 2e5ac32d0aa..1ea07065e16 100644 --- a/feature-libs/product-multi-dimensional/selector/assets/translations/ja/index.ts +++ b/feature-libs/product-multi-dimensional/selector/assets/translations/ja/index.ts @@ -5,7 +5,6 @@ */ import multiDimensionalSelector from './multiDimensionalSelector.json'; - export const ja = { multiDimensionalSelector, }; diff --git a/feature-libs/product-multi-dimensional/selector/assets/translations/ko/index.ts b/feature-libs/product-multi-dimensional/selector/assets/translations/ko/index.ts new file mode 100644 index 00000000000..1c220bfbd5a --- /dev/null +++ b/feature-libs/product-multi-dimensional/selector/assets/translations/ko/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import multiDimensionalSelector from './multiDimensionalSelector.json'; +export const ko = { + multiDimensionalSelector, +}; diff --git a/feature-libs/product-multi-dimensional/selector/assets/translations/pl/index.ts b/feature-libs/product-multi-dimensional/selector/assets/translations/pl/index.ts new file mode 100644 index 00000000000..35ee0cce10b --- /dev/null +++ b/feature-libs/product-multi-dimensional/selector/assets/translations/pl/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import multiDimensionalSelector from './multiDimensionalSelector.json'; +export const pl = { + multiDimensionalSelector, +}; diff --git a/feature-libs/product-multi-dimensional/selector/assets/translations/pt/index.ts b/feature-libs/product-multi-dimensional/selector/assets/translations/pt/index.ts new file mode 100644 index 00000000000..a65e542e380 --- /dev/null +++ b/feature-libs/product-multi-dimensional/selector/assets/translations/pt/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import multiDimensionalSelector from './multiDimensionalSelector.json'; +export const pt = { + multiDimensionalSelector, +}; diff --git a/feature-libs/product-multi-dimensional/selector/assets/translations/ru/index.ts b/feature-libs/product-multi-dimensional/selector/assets/translations/ru/index.ts new file mode 100644 index 00000000000..94276100701 --- /dev/null +++ b/feature-libs/product-multi-dimensional/selector/assets/translations/ru/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import multiDimensionalSelector from './multiDimensionalSelector.json'; +export const ru = { + multiDimensionalSelector, +}; diff --git a/feature-libs/product-multi-dimensional/selector/assets/translations/translations.ts b/feature-libs/product-multi-dimensional/selector/assets/translations/translations.ts index 4f90e640454..61739449a2b 100644 --- a/feature-libs/product-multi-dimensional/selector/assets/translations/translations.ts +++ b/feature-libs/product-multi-dimensional/selector/assets/translations/translations.ts @@ -4,20 +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 multiDimensionalSelectorTranslations: TranslationResources = { +/** + * @deprecated use **specific language** translations (suffixed with language code) instead, + * like in the following example: + * ```diff + * i18n: { + * - resources: multiDimensionalSelectorTranslations + * + resources: { en: multiDimensionalSelectorTranslationsEn } + * } + * ``` + */ +export const multiDimensionalSelectorTranslations = { en, - ja, - de, - zh, }; -export const multiDimensionalSelectorTranslationChunksConfig: TranslationChunksConfig = - { - multiDimensionalSelector: ['multiDimensionalSelector'], - }; +export { cs as multiDimensionalSelectorTranslationsCs } from './cs/index'; +export { de as multiDimensionalSelectorTranslationsDe } from './de/index'; +export { en as multiDimensionalSelectorTranslationsEn } from './en/index'; +export { es as multiDimensionalSelectorTranslationsEs } from './es/index'; +export { es_CO as multiDimensionalSelectorTranslationsEs_CO } from './es_CO/index'; +export { fr as multiDimensionalSelectorTranslationsFr } from './fr/index'; +export { hi as multiDimensionalSelectorTranslationsHi } from './hi/index'; +export { hu as multiDimensionalSelectorTranslationsHu } from './hu/index'; +export { id as multiDimensionalSelectorTranslationsId } from './id/index'; +export { it as multiDimensionalSelectorTranslationsIt } from './it/index'; +export { ja as multiDimensionalSelectorTranslationsJa } from './ja/index'; +export { ko as multiDimensionalSelectorTranslationsKo } from './ko/index'; +export { pl as multiDimensionalSelectorTranslationsPl } from './pl/index'; +export { pt as multiDimensionalSelectorTranslationsPt } from './pt/index'; +export { ru as multiDimensionalSelectorTranslationsRu } from './ru/index'; +export { zh as multiDimensionalSelectorTranslationsZh } from './zh/index'; +export { zh_TW as multiDimensionalSelectorTranslationsZh_TW } from './zh_TW/index'; diff --git a/feature-libs/product-multi-dimensional/selector/assets/translations/zh/index.ts b/feature-libs/product-multi-dimensional/selector/assets/translations/zh/index.ts index 40742443c59..c2e2994f8dc 100644 --- a/feature-libs/product-multi-dimensional/selector/assets/translations/zh/index.ts +++ b/feature-libs/product-multi-dimensional/selector/assets/translations/zh/index.ts @@ -5,7 +5,6 @@ */ import multiDimensionalSelector from './multiDimensionalSelector.json'; - export const zh = { multiDimensionalSelector, }; diff --git a/feature-libs/product-multi-dimensional/selector/assets/translations/zh_TW/index.ts b/feature-libs/product-multi-dimensional/selector/assets/translations/zh_TW/index.ts new file mode 100644 index 00000000000..15c561bfb9f --- /dev/null +++ b/feature-libs/product-multi-dimensional/selector/assets/translations/zh_TW/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import multiDimensionalSelector from './multiDimensionalSelector.json'; +export const zh_TW = { + multiDimensionalSelector, +}; diff --git a/feature-libs/product/bulk-pricing/assets/translations/cs/index.ts b/feature-libs/product/bulk-pricing/assets/translations/cs/index.ts new file mode 100644 index 00000000000..9f60f43bba2 --- /dev/null +++ b/feature-libs/product/bulk-pricing/assets/translations/cs/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import bulkPricing from './bulkPricing.json'; +export const cs = { + bulkPricing, +}; diff --git a/feature-libs/product/bulk-pricing/assets/translations/de/index.ts b/feature-libs/product/bulk-pricing/assets/translations/de/index.ts index cfc764a8775..8e44790b075 100644 --- a/feature-libs/product/bulk-pricing/assets/translations/de/index.ts +++ b/feature-libs/product/bulk-pricing/assets/translations/de/index.ts @@ -5,7 +5,6 @@ */ import bulkPricing from './bulkPricing.json'; - export const de = { bulkPricing, }; diff --git a/feature-libs/product/bulk-pricing/assets/translations/en/index.ts b/feature-libs/product/bulk-pricing/assets/translations/en/index.ts index 84cb3962d61..dbe7e4f0cd3 100644 --- a/feature-libs/product/bulk-pricing/assets/translations/en/index.ts +++ b/feature-libs/product/bulk-pricing/assets/translations/en/index.ts @@ -5,7 +5,6 @@ */ import bulkPricing from './bulkPricing.json'; - export const en = { bulkPricing, }; diff --git a/feature-libs/product/bulk-pricing/assets/translations/es/index.ts b/feature-libs/product/bulk-pricing/assets/translations/es/index.ts new file mode 100644 index 00000000000..83374e5cd4d --- /dev/null +++ b/feature-libs/product/bulk-pricing/assets/translations/es/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import bulkPricing from './bulkPricing.json'; +export const es = { + bulkPricing, +}; diff --git a/feature-libs/product/bulk-pricing/assets/translations/es_CO/index.ts b/feature-libs/product/bulk-pricing/assets/translations/es_CO/index.ts new file mode 100644 index 00000000000..31f9f391211 --- /dev/null +++ b/feature-libs/product/bulk-pricing/assets/translations/es_CO/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import bulkPricing from './bulkPricing.json'; +export const es_CO = { + bulkPricing, +}; diff --git a/feature-libs/product/bulk-pricing/assets/translations/fr/index.ts b/feature-libs/product/bulk-pricing/assets/translations/fr/index.ts new file mode 100644 index 00000000000..2f787391564 --- /dev/null +++ b/feature-libs/product/bulk-pricing/assets/translations/fr/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import bulkPricing from './bulkPricing.json'; +export const fr = { + bulkPricing, +}; diff --git a/feature-libs/product/bulk-pricing/assets/translations/hi/index.ts b/feature-libs/product/bulk-pricing/assets/translations/hi/index.ts new file mode 100644 index 00000000000..b3ad25959fd --- /dev/null +++ b/feature-libs/product/bulk-pricing/assets/translations/hi/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import bulkPricing from './bulkPricing.json'; +export const hi = { + bulkPricing, +}; diff --git a/feature-libs/product/bulk-pricing/assets/translations/hu/index.ts b/feature-libs/product/bulk-pricing/assets/translations/hu/index.ts new file mode 100644 index 00000000000..5c1ae031b93 --- /dev/null +++ b/feature-libs/product/bulk-pricing/assets/translations/hu/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import bulkPricing from './bulkPricing.json'; +export const hu = { + bulkPricing, +}; diff --git a/feature-libs/product/bulk-pricing/assets/translations/id/index.ts b/feature-libs/product/bulk-pricing/assets/translations/id/index.ts new file mode 100644 index 00000000000..2d894498ce8 --- /dev/null +++ b/feature-libs/product/bulk-pricing/assets/translations/id/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import bulkPricing from './bulkPricing.json'; +export const id = { + bulkPricing, +}; diff --git a/feature-libs/product/bulk-pricing/assets/translations/it/index.ts b/feature-libs/product/bulk-pricing/assets/translations/it/index.ts new file mode 100644 index 00000000000..10e7c5b0a57 --- /dev/null +++ b/feature-libs/product/bulk-pricing/assets/translations/it/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import bulkPricing from './bulkPricing.json'; +export const it = { + bulkPricing, +}; diff --git a/feature-libs/product/bulk-pricing/assets/translations/ja/index.ts b/feature-libs/product/bulk-pricing/assets/translations/ja/index.ts index 3a3c08320a9..890a5e1ad5f 100644 --- a/feature-libs/product/bulk-pricing/assets/translations/ja/index.ts +++ b/feature-libs/product/bulk-pricing/assets/translations/ja/index.ts @@ -5,7 +5,6 @@ */ import bulkPricing from './bulkPricing.json'; - export const ja = { bulkPricing, }; diff --git a/feature-libs/product/bulk-pricing/assets/translations/ko/index.ts b/feature-libs/product/bulk-pricing/assets/translations/ko/index.ts new file mode 100644 index 00000000000..389029108c5 --- /dev/null +++ b/feature-libs/product/bulk-pricing/assets/translations/ko/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import bulkPricing from './bulkPricing.json'; +export const ko = { + bulkPricing, +}; diff --git a/feature-libs/product/bulk-pricing/assets/translations/pl/index.ts b/feature-libs/product/bulk-pricing/assets/translations/pl/index.ts new file mode 100644 index 00000000000..5da70e2a1ff --- /dev/null +++ b/feature-libs/product/bulk-pricing/assets/translations/pl/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import bulkPricing from './bulkPricing.json'; +export const pl = { + bulkPricing, +}; diff --git a/feature-libs/product/bulk-pricing/assets/translations/pt/index.ts b/feature-libs/product/bulk-pricing/assets/translations/pt/index.ts new file mode 100644 index 00000000000..4a5a60fdb07 --- /dev/null +++ b/feature-libs/product/bulk-pricing/assets/translations/pt/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import bulkPricing from './bulkPricing.json'; +export const pt = { + bulkPricing, +}; diff --git a/feature-libs/product/bulk-pricing/assets/translations/ru/index.ts b/feature-libs/product/bulk-pricing/assets/translations/ru/index.ts new file mode 100644 index 00000000000..8111ee313cc --- /dev/null +++ b/feature-libs/product/bulk-pricing/assets/translations/ru/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import bulkPricing from './bulkPricing.json'; +export const ru = { + bulkPricing, +}; diff --git a/feature-libs/product/bulk-pricing/assets/translations/translations.ts b/feature-libs/product/bulk-pricing/assets/translations/translations.ts index 630d0563f7c..cf5ec8a5a49 100644 --- a/feature-libs/product/bulk-pricing/assets/translations/translations.ts +++ b/feature-libs/product/bulk-pricing/assets/translations/translations.ts @@ -4,20 +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 bulkPricingTranslations: TranslationResources = { +/** + * @deprecated use **specific language** translations (suffixed with language code) instead, + * like in the following example: + * ```diff + * i18n: { + * - resources: bulkPricingTranslations + * + resources: { en: bulkPricingTranslationsEn } + * } + * ``` + */ +export const bulkPricingTranslations = { en, - ja, - de, - zh, }; -// expose all translation chunk mapping for bulkPricing feature -export const bulkPricingTranslationChunksConfig: TranslationChunksConfig = { - bulkPricing: ['bulkPricingTable'], -}; +export { cs as bulkPricingTranslationsCs } from './cs/index'; +export { de as bulkPricingTranslationsDe } from './de/index'; +export { en as bulkPricingTranslationsEn } from './en/index'; +export { es as bulkPricingTranslationsEs } from './es/index'; +export { es_CO as bulkPricingTranslationsEs_CO } from './es_CO/index'; +export { fr as bulkPricingTranslationsFr } from './fr/index'; +export { hi as bulkPricingTranslationsHi } from './hi/index'; +export { hu as bulkPricingTranslationsHu } from './hu/index'; +export { id as bulkPricingTranslationsId } from './id/index'; +export { it as bulkPricingTranslationsIt } from './it/index'; +export { ja as bulkPricingTranslationsJa } from './ja/index'; +export { ko as bulkPricingTranslationsKo } from './ko/index'; +export { pl as bulkPricingTranslationsPl } from './pl/index'; +export { pt as bulkPricingTranslationsPt } from './pt/index'; +export { ru as bulkPricingTranslationsRu } from './ru/index'; +export { zh as bulkPricingTranslationsZh } from './zh/index'; +export { zh_TW as bulkPricingTranslationsZh_TW } from './zh_TW/index'; diff --git a/feature-libs/product/bulk-pricing/assets/translations/zh/index.ts b/feature-libs/product/bulk-pricing/assets/translations/zh/index.ts index f006c0a2fdf..c508b3c2670 100644 --- a/feature-libs/product/bulk-pricing/assets/translations/zh/index.ts +++ b/feature-libs/product/bulk-pricing/assets/translations/zh/index.ts @@ -5,7 +5,6 @@ */ import bulkPricing from './bulkPricing.json'; - export const zh = { bulkPricing, }; diff --git a/feature-libs/product/bulk-pricing/assets/translations/zh_TW/index.ts b/feature-libs/product/bulk-pricing/assets/translations/zh_TW/index.ts new file mode 100644 index 00000000000..ceaf59a56ba --- /dev/null +++ b/feature-libs/product/bulk-pricing/assets/translations/zh_TW/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import bulkPricing from './bulkPricing.json'; +export const zh_TW = { + bulkPricing, +}; diff --git a/feature-libs/product/future-stock/assets/translations/cs/index.ts b/feature-libs/product/future-stock/assets/translations/cs/index.ts new file mode 100644 index 00000000000..88b29d37a41 --- /dev/null +++ b/feature-libs/product/future-stock/assets/translations/cs/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import futureStock from './futureStock.json'; +export const cs = { + futureStock, +}; diff --git a/feature-libs/product/future-stock/assets/translations/de/index.ts b/feature-libs/product/future-stock/assets/translations/de/index.ts index 0d7eefd9966..098135421a5 100644 --- a/feature-libs/product/future-stock/assets/translations/de/index.ts +++ b/feature-libs/product/future-stock/assets/translations/de/index.ts @@ -5,7 +5,6 @@ */ import futureStock from './futureStock.json'; - export const de = { futureStock, }; diff --git a/feature-libs/product/future-stock/assets/translations/en/index.ts b/feature-libs/product/future-stock/assets/translations/en/index.ts index e0d0e8c21b3..9de266bdc1e 100644 --- a/feature-libs/product/future-stock/assets/translations/en/index.ts +++ b/feature-libs/product/future-stock/assets/translations/en/index.ts @@ -5,7 +5,6 @@ */ import futureStock from './futureStock.json'; - export const en = { futureStock, }; diff --git a/feature-libs/product/future-stock/assets/translations/es/index.ts b/feature-libs/product/future-stock/assets/translations/es/index.ts new file mode 100644 index 00000000000..8be5a1d9b17 --- /dev/null +++ b/feature-libs/product/future-stock/assets/translations/es/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import futureStock from './futureStock.json'; +export const es = { + futureStock, +}; diff --git a/feature-libs/product/future-stock/assets/translations/es_CO/index.ts b/feature-libs/product/future-stock/assets/translations/es_CO/index.ts new file mode 100644 index 00000000000..a1336e2721c --- /dev/null +++ b/feature-libs/product/future-stock/assets/translations/es_CO/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import futureStock from './futureStock.json'; +export const es_CO = { + futureStock, +}; diff --git a/feature-libs/product/future-stock/assets/translations/fr/index.ts b/feature-libs/product/future-stock/assets/translations/fr/index.ts new file mode 100644 index 00000000000..91471cfcf64 --- /dev/null +++ b/feature-libs/product/future-stock/assets/translations/fr/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import futureStock from './futureStock.json'; +export const fr = { + futureStock, +}; diff --git a/feature-libs/product/future-stock/assets/translations/hi/index.ts b/feature-libs/product/future-stock/assets/translations/hi/index.ts new file mode 100644 index 00000000000..433d7453556 --- /dev/null +++ b/feature-libs/product/future-stock/assets/translations/hi/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import futureStock from './futureStock.json'; +export const hi = { + futureStock, +}; diff --git a/feature-libs/product/future-stock/assets/translations/hu/index.ts b/feature-libs/product/future-stock/assets/translations/hu/index.ts new file mode 100644 index 00000000000..3e9ef2368a2 --- /dev/null +++ b/feature-libs/product/future-stock/assets/translations/hu/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import futureStock from './futureStock.json'; +export const hu = { + futureStock, +}; diff --git a/feature-libs/product/future-stock/assets/translations/id/index.ts b/feature-libs/product/future-stock/assets/translations/id/index.ts new file mode 100644 index 00000000000..7b47250bf8f --- /dev/null +++ b/feature-libs/product/future-stock/assets/translations/id/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import futureStock from './futureStock.json'; +export const id = { + futureStock, +}; diff --git a/feature-libs/product/future-stock/assets/translations/it/index.ts b/feature-libs/product/future-stock/assets/translations/it/index.ts new file mode 100644 index 00000000000..5a2b1b1b6bf --- /dev/null +++ b/feature-libs/product/future-stock/assets/translations/it/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import futureStock from './futureStock.json'; +export const it = { + futureStock, +}; diff --git a/feature-libs/product/future-stock/assets/translations/ja/index.ts b/feature-libs/product/future-stock/assets/translations/ja/index.ts index 8caf8b219d9..3306b180fed 100644 --- a/feature-libs/product/future-stock/assets/translations/ja/index.ts +++ b/feature-libs/product/future-stock/assets/translations/ja/index.ts @@ -5,7 +5,6 @@ */ import futureStock from './futureStock.json'; - export const ja = { futureStock, }; diff --git a/feature-libs/product/future-stock/assets/translations/ko/index.ts b/feature-libs/product/future-stock/assets/translations/ko/index.ts new file mode 100644 index 00000000000..87264a56dfd --- /dev/null +++ b/feature-libs/product/future-stock/assets/translations/ko/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import futureStock from './futureStock.json'; +export const ko = { + futureStock, +}; diff --git a/feature-libs/product/future-stock/assets/translations/pl/index.ts b/feature-libs/product/future-stock/assets/translations/pl/index.ts new file mode 100644 index 00000000000..70a786db13c --- /dev/null +++ b/feature-libs/product/future-stock/assets/translations/pl/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import futureStock from './futureStock.json'; +export const pl = { + futureStock, +}; diff --git a/feature-libs/product/future-stock/assets/translations/pt/index.ts b/feature-libs/product/future-stock/assets/translations/pt/index.ts new file mode 100644 index 00000000000..481ab146b08 --- /dev/null +++ b/feature-libs/product/future-stock/assets/translations/pt/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import futureStock from './futureStock.json'; +export const pt = { + futureStock, +}; diff --git a/feature-libs/product/future-stock/assets/translations/ru/index.ts b/feature-libs/product/future-stock/assets/translations/ru/index.ts new file mode 100644 index 00000000000..f9c51b1b891 --- /dev/null +++ b/feature-libs/product/future-stock/assets/translations/ru/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import futureStock from './futureStock.json'; +export const ru = { + futureStock, +}; diff --git a/feature-libs/product/future-stock/assets/translations/translations.ts b/feature-libs/product/future-stock/assets/translations/translations.ts index e6f4437c5fb..883971bf80f 100644 --- a/feature-libs/product/future-stock/assets/translations/translations.ts +++ b/feature-libs/product/future-stock/assets/translations/translations.ts @@ -4,20 +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 futureStockTranslations: TranslationResources = { +/** + * @deprecated use **specific language** translations (suffixed with language code) instead, + * like in the following example: + * ```diff + * i18n: { + * - resources: futureStockTranslations + * + resources: { en: futureStockTranslationsEn } + * } + * ``` + */ +export const futureStockTranslations = { en, - ja, - de, - zh, }; -// expose all translation chunk mapping for FutureStock feature -export const futureStockTranslationChunksConfig: TranslationChunksConfig = { - futureStock: ['futureStockDropdown'], -}; +export { cs as futureStockTranslationsCs } from './cs/index'; +export { de as futureStockTranslationsDe } from './de/index'; +export { en as futureStockTranslationsEn } from './en/index'; +export { es as futureStockTranslationsEs } from './es/index'; +export { es_CO as futureStockTranslationsEs_CO } from './es_CO/index'; +export { fr as futureStockTranslationsFr } from './fr/index'; +export { hi as futureStockTranslationsHi } from './hi/index'; +export { hu as futureStockTranslationsHu } from './hu/index'; +export { id as futureStockTranslationsId } from './id/index'; +export { it as futureStockTranslationsIt } from './it/index'; +export { ja as futureStockTranslationsJa } from './ja/index'; +export { ko as futureStockTranslationsKo } from './ko/index'; +export { pl as futureStockTranslationsPl } from './pl/index'; +export { pt as futureStockTranslationsPt } from './pt/index'; +export { ru as futureStockTranslationsRu } from './ru/index'; +export { zh as futureStockTranslationsZh } from './zh/index'; +export { zh_TW as futureStockTranslationsZh_TW } from './zh_TW/index'; diff --git a/feature-libs/product/future-stock/assets/translations/zh/index.ts b/feature-libs/product/future-stock/assets/translations/zh/index.ts index f2bfc957b50..666008d761a 100644 --- a/feature-libs/product/future-stock/assets/translations/zh/index.ts +++ b/feature-libs/product/future-stock/assets/translations/zh/index.ts @@ -5,7 +5,6 @@ */ import futureStock from './futureStock.json'; - export const zh = { futureStock, }; diff --git a/feature-libs/product/future-stock/assets/translations/zh_TW/index.ts b/feature-libs/product/future-stock/assets/translations/zh_TW/index.ts new file mode 100644 index 00000000000..bd4d7b1ae7c --- /dev/null +++ b/feature-libs/product/future-stock/assets/translations/zh_TW/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import futureStock from './futureStock.json'; +export const zh_TW = { + futureStock, +}; diff --git a/feature-libs/product/image-zoom/assets/translations/cs/index.ts b/feature-libs/product/image-zoom/assets/translations/cs/index.ts new file mode 100644 index 00000000000..1a422131506 --- /dev/null +++ b/feature-libs/product/image-zoom/assets/translations/cs/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import productImageZoom from './productImageZoom.json'; +export const cs = { + productImageZoom, +}; diff --git a/feature-libs/product/image-zoom/assets/translations/de/index.ts b/feature-libs/product/image-zoom/assets/translations/de/index.ts index 2193e4c8fcc..16b63dcbb6c 100644 --- a/feature-libs/product/image-zoom/assets/translations/de/index.ts +++ b/feature-libs/product/image-zoom/assets/translations/de/index.ts @@ -5,7 +5,6 @@ */ import productImageZoom from './productImageZoom.json'; - export const de = { productImageZoom, }; diff --git a/feature-libs/product/image-zoom/assets/translations/en/index.ts b/feature-libs/product/image-zoom/assets/translations/en/index.ts index 139afef9f1a..493e5db5f95 100644 --- a/feature-libs/product/image-zoom/assets/translations/en/index.ts +++ b/feature-libs/product/image-zoom/assets/translations/en/index.ts @@ -5,7 +5,6 @@ */ import productImageZoom from './productImageZoom.json'; - export const en = { productImageZoom, }; diff --git a/feature-libs/product/image-zoom/assets/translations/es/index.ts b/feature-libs/product/image-zoom/assets/translations/es/index.ts new file mode 100644 index 00000000000..f3977eb9f4f --- /dev/null +++ b/feature-libs/product/image-zoom/assets/translations/es/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import productImageZoom from './productImageZoom.json'; +export const es = { + productImageZoom, +}; diff --git a/feature-libs/product/image-zoom/assets/translations/es_CO/index.ts b/feature-libs/product/image-zoom/assets/translations/es_CO/index.ts new file mode 100644 index 00000000000..81de8309e5f --- /dev/null +++ b/feature-libs/product/image-zoom/assets/translations/es_CO/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import productImageZoom from './productImageZoom.json'; +export const es_CO = { + productImageZoom, +}; diff --git a/feature-libs/product/image-zoom/assets/translations/fr/index.ts b/feature-libs/product/image-zoom/assets/translations/fr/index.ts new file mode 100644 index 00000000000..6ede2e182af --- /dev/null +++ b/feature-libs/product/image-zoom/assets/translations/fr/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import productImageZoom from './productImageZoom.json'; +export const fr = { + productImageZoom, +}; diff --git a/feature-libs/product/image-zoom/assets/translations/hi/index.ts b/feature-libs/product/image-zoom/assets/translations/hi/index.ts new file mode 100644 index 00000000000..337b9c67e83 --- /dev/null +++ b/feature-libs/product/image-zoom/assets/translations/hi/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import productImageZoom from './productImageZoom.json'; +export const hi = { + productImageZoom, +}; diff --git a/feature-libs/product/image-zoom/assets/translations/hu/index.ts b/feature-libs/product/image-zoom/assets/translations/hu/index.ts new file mode 100644 index 00000000000..45d2887dee8 --- /dev/null +++ b/feature-libs/product/image-zoom/assets/translations/hu/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import productImageZoom from './productImageZoom.json'; +export const hu = { + productImageZoom, +}; diff --git a/feature-libs/product/image-zoom/assets/translations/id/index.ts b/feature-libs/product/image-zoom/assets/translations/id/index.ts new file mode 100644 index 00000000000..2ef1b1a7bd3 --- /dev/null +++ b/feature-libs/product/image-zoom/assets/translations/id/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import productImageZoom from './productImageZoom.json'; +export const id = { + productImageZoom, +}; diff --git a/feature-libs/product/image-zoom/assets/translations/it/index.ts b/feature-libs/product/image-zoom/assets/translations/it/index.ts new file mode 100644 index 00000000000..67ddf227f09 --- /dev/null +++ b/feature-libs/product/image-zoom/assets/translations/it/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import productImageZoom from './productImageZoom.json'; +export const it = { + productImageZoom, +}; diff --git a/feature-libs/product/image-zoom/assets/translations/ja/index.ts b/feature-libs/product/image-zoom/assets/translations/ja/index.ts index 09b971669bd..1f914d72578 100644 --- a/feature-libs/product/image-zoom/assets/translations/ja/index.ts +++ b/feature-libs/product/image-zoom/assets/translations/ja/index.ts @@ -5,7 +5,6 @@ */ import productImageZoom from './productImageZoom.json'; - export const ja = { productImageZoom, }; diff --git a/feature-libs/product/image-zoom/assets/translations/ko/index.ts b/feature-libs/product/image-zoom/assets/translations/ko/index.ts new file mode 100644 index 00000000000..0a058b998a7 --- /dev/null +++ b/feature-libs/product/image-zoom/assets/translations/ko/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import productImageZoom from './productImageZoom.json'; +export const ko = { + productImageZoom, +}; diff --git a/feature-libs/product/image-zoom/assets/translations/pl/index.ts b/feature-libs/product/image-zoom/assets/translations/pl/index.ts new file mode 100644 index 00000000000..91b5a03f5a9 --- /dev/null +++ b/feature-libs/product/image-zoom/assets/translations/pl/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import productImageZoom from './productImageZoom.json'; +export const pl = { + productImageZoom, +}; diff --git a/feature-libs/product/image-zoom/assets/translations/pt/index.ts b/feature-libs/product/image-zoom/assets/translations/pt/index.ts new file mode 100644 index 00000000000..e80bc1d8877 --- /dev/null +++ b/feature-libs/product/image-zoom/assets/translations/pt/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import productImageZoom from './productImageZoom.json'; +export const pt = { + productImageZoom, +}; diff --git a/feature-libs/product/image-zoom/assets/translations/ru/index.ts b/feature-libs/product/image-zoom/assets/translations/ru/index.ts new file mode 100644 index 00000000000..98dcc6f0d48 --- /dev/null +++ b/feature-libs/product/image-zoom/assets/translations/ru/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import productImageZoom from './productImageZoom.json'; +export const ru = { + productImageZoom, +}; diff --git a/feature-libs/product/image-zoom/assets/translations/translations.ts b/feature-libs/product/image-zoom/assets/translations/translations.ts index 0d9c1970190..361ad4e0726 100644 --- a/feature-libs/product/image-zoom/assets/translations/translations.ts +++ b/feature-libs/product/image-zoom/assets/translations/translations.ts @@ -4,21 +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 productImageZoomTranslations: TranslationResources = { +/** + * @deprecated use **specific language** translations (suffixed with language code) instead, + * like in the following example: + * ```diff + * i18n: { + * - resources: productImageZoomTranslations + * + resources: { en: productImageZoomTranslationsEn } + * } + * ``` + */ +export const productImageZoomTranslations = { en, - ja, - de, - zh, }; -// expose all translation chunk mapping for imageZoom feature -export const productImageZoomTranslationChunksConfig: TranslationChunksConfig = - { - productImageZoom: ['productImageZoomTrigger', 'productImageZoomDialog'], - }; +export { cs as productImageZoomTranslationsCs } from './cs/index'; +export { de as productImageZoomTranslationsDe } from './de/index'; +export { en as productImageZoomTranslationsEn } from './en/index'; +export { es as productImageZoomTranslationsEs } from './es/index'; +export { es_CO as productImageZoomTranslationsEs_CO } from './es_CO/index'; +export { fr as productImageZoomTranslationsFr } from './fr/index'; +export { hi as productImageZoomTranslationsHi } from './hi/index'; +export { hu as productImageZoomTranslationsHu } from './hu/index'; +export { id as productImageZoomTranslationsId } from './id/index'; +export { it as productImageZoomTranslationsIt } from './it/index'; +export { ja as productImageZoomTranslationsJa } from './ja/index'; +export { ko as productImageZoomTranslationsKo } from './ko/index'; +export { pl as productImageZoomTranslationsPl } from './pl/index'; +export { pt as productImageZoomTranslationsPt } from './pt/index'; +export { ru as productImageZoomTranslationsRu } from './ru/index'; +export { zh as productImageZoomTranslationsZh } from './zh/index'; +export { zh_TW as productImageZoomTranslationsZh_TW } from './zh_TW/index'; diff --git a/feature-libs/product/image-zoom/assets/translations/zh/index.ts b/feature-libs/product/image-zoom/assets/translations/zh/index.ts index 10f4ded9317..50a83c3b409 100644 --- a/feature-libs/product/image-zoom/assets/translations/zh/index.ts +++ b/feature-libs/product/image-zoom/assets/translations/zh/index.ts @@ -5,7 +5,6 @@ */ import productImageZoom from './productImageZoom.json'; - export const zh = { productImageZoom, }; diff --git a/feature-libs/product/image-zoom/assets/translations/zh_TW/index.ts b/feature-libs/product/image-zoom/assets/translations/zh_TW/index.ts new file mode 100644 index 00000000000..caf9592e75a --- /dev/null +++ b/feature-libs/product/image-zoom/assets/translations/zh_TW/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import productImageZoom from './productImageZoom.json'; +export const zh_TW = { + productImageZoom, +}; diff --git a/feature-libs/product/variants/assets/translations/cs/index.ts b/feature-libs/product/variants/assets/translations/cs/index.ts new file mode 100644 index 00000000000..8889d0c26ed --- /dev/null +++ b/feature-libs/product/variants/assets/translations/cs/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import productVariants from './productVariants.json'; +export const cs = { + productVariants, +}; diff --git a/feature-libs/product/variants/assets/translations/de/index.ts b/feature-libs/product/variants/assets/translations/de/index.ts index e8e6b439301..ba16be2a1d2 100644 --- a/feature-libs/product/variants/assets/translations/de/index.ts +++ b/feature-libs/product/variants/assets/translations/de/index.ts @@ -5,7 +5,6 @@ */ import productVariants from './productVariants.json'; - export const de = { productVariants, }; diff --git a/feature-libs/product/variants/assets/translations/en/index.ts b/feature-libs/product/variants/assets/translations/en/index.ts index 8eca6b921d1..0ddca5ff7ce 100644 --- a/feature-libs/product/variants/assets/translations/en/index.ts +++ b/feature-libs/product/variants/assets/translations/en/index.ts @@ -5,7 +5,6 @@ */ import productVariants from './productVariants.json'; - export const en = { productVariants, }; diff --git a/feature-libs/product/variants/assets/translations/es/index.ts b/feature-libs/product/variants/assets/translations/es/index.ts new file mode 100644 index 00000000000..08a92507747 --- /dev/null +++ b/feature-libs/product/variants/assets/translations/es/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import productVariants from './productVariants.json'; +export const es = { + productVariants, +}; diff --git a/feature-libs/product/variants/assets/translations/es_CO/index.ts b/feature-libs/product/variants/assets/translations/es_CO/index.ts new file mode 100644 index 00000000000..bc1fd47f125 --- /dev/null +++ b/feature-libs/product/variants/assets/translations/es_CO/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import productVariants from './productVariants.json'; +export const es_CO = { + productVariants, +}; diff --git a/feature-libs/product/variants/assets/translations/fr/index.ts b/feature-libs/product/variants/assets/translations/fr/index.ts new file mode 100644 index 00000000000..23960396e23 --- /dev/null +++ b/feature-libs/product/variants/assets/translations/fr/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import productVariants from './productVariants.json'; +export const fr = { + productVariants, +}; diff --git a/feature-libs/product/variants/assets/translations/hi/index.ts b/feature-libs/product/variants/assets/translations/hi/index.ts new file mode 100644 index 00000000000..af0ffd4815a --- /dev/null +++ b/feature-libs/product/variants/assets/translations/hi/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import productVariants from './productVariants.json'; +export const hi = { + productVariants, +}; diff --git a/feature-libs/product/variants/assets/translations/hu/index.ts b/feature-libs/product/variants/assets/translations/hu/index.ts new file mode 100644 index 00000000000..1aa75febcb5 --- /dev/null +++ b/feature-libs/product/variants/assets/translations/hu/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import productVariants from './productVariants.json'; +export const hu = { + productVariants, +}; diff --git a/feature-libs/product/variants/assets/translations/id/index.ts b/feature-libs/product/variants/assets/translations/id/index.ts new file mode 100644 index 00000000000..c39ad0e0d0a --- /dev/null +++ b/feature-libs/product/variants/assets/translations/id/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import productVariants from './productVariants.json'; +export const id = { + productVariants, +}; diff --git a/feature-libs/product/variants/assets/translations/it/index.ts b/feature-libs/product/variants/assets/translations/it/index.ts new file mode 100644 index 00000000000..2226235814b --- /dev/null +++ b/feature-libs/product/variants/assets/translations/it/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import productVariants from './productVariants.json'; +export const it = { + productVariants, +}; diff --git a/feature-libs/product/variants/assets/translations/ja/index.ts b/feature-libs/product/variants/assets/translations/ja/index.ts index 1690b19993d..fdf0b26b781 100644 --- a/feature-libs/product/variants/assets/translations/ja/index.ts +++ b/feature-libs/product/variants/assets/translations/ja/index.ts @@ -5,7 +5,6 @@ */ import productVariants from './productVariants.json'; - export const ja = { productVariants, }; diff --git a/feature-libs/product/variants/assets/translations/ko/index.ts b/feature-libs/product/variants/assets/translations/ko/index.ts new file mode 100644 index 00000000000..d9590c596df --- /dev/null +++ b/feature-libs/product/variants/assets/translations/ko/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import productVariants from './productVariants.json'; +export const ko = { + productVariants, +}; diff --git a/feature-libs/product/variants/assets/translations/pl/index.ts b/feature-libs/product/variants/assets/translations/pl/index.ts new file mode 100644 index 00000000000..86701233096 --- /dev/null +++ b/feature-libs/product/variants/assets/translations/pl/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import productVariants from './productVariants.json'; +export const pl = { + productVariants, +}; diff --git a/feature-libs/product/variants/assets/translations/pt/index.ts b/feature-libs/product/variants/assets/translations/pt/index.ts new file mode 100644 index 00000000000..0fca9903d34 --- /dev/null +++ b/feature-libs/product/variants/assets/translations/pt/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import productVariants from './productVariants.json'; +export const pt = { + productVariants, +}; diff --git a/feature-libs/product/variants/assets/translations/ru/index.ts b/feature-libs/product/variants/assets/translations/ru/index.ts new file mode 100644 index 00000000000..a399ef3b5ef --- /dev/null +++ b/feature-libs/product/variants/assets/translations/ru/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import productVariants from './productVariants.json'; +export const ru = { + productVariants, +}; diff --git a/feature-libs/product/variants/assets/translations/translations.ts b/feature-libs/product/variants/assets/translations/translations.ts index 29038e120af..7c8e2246a33 100644 --- a/feature-libs/product/variants/assets/translations/translations.ts +++ b/feature-libs/product/variants/assets/translations/translations.ts @@ -4,20 +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 productVariantsTranslations: TranslationResources = { +/** + * @deprecated use **specific language** translations (suffixed with language code) instead, + * like in the following example: + * ```diff + * i18n: { + * - resources: productVariantsTranslations + * + resources: { en: productVariantsTranslationsEn } + * } + * ``` + */ +export const productVariantsTranslations = { en, - ja, - de, - zh, }; -// expose all translation chunk mapping for variants sub features -export const productVariantsTranslationChunksConfig: TranslationChunksConfig = { - productVariants: ['productVariants'], -}; +export { cs as productVariantsTranslationsCs } from './cs/index'; +export { de as productVariantsTranslationsDe } from './de/index'; +export { en as productVariantsTranslationsEn } from './en/index'; +export { es as productVariantsTranslationsEs } from './es/index'; +export { es_CO as productVariantsTranslationsEs_CO } from './es_CO/index'; +export { fr as productVariantsTranslationsFr } from './fr/index'; +export { hi as productVariantsTranslationsHi } from './hi/index'; +export { hu as productVariantsTranslationsHu } from './hu/index'; +export { id as productVariantsTranslationsId } from './id/index'; +export { it as productVariantsTranslationsIt } from './it/index'; +export { ja as productVariantsTranslationsJa } from './ja/index'; +export { ko as productVariantsTranslationsKo } from './ko/index'; +export { pl as productVariantsTranslationsPl } from './pl/index'; +export { pt as productVariantsTranslationsPt } from './pt/index'; +export { ru as productVariantsTranslationsRu } from './ru/index'; +export { zh as productVariantsTranslationsZh } from './zh/index'; +export { zh_TW as productVariantsTranslationsZh_TW } from './zh_TW/index'; diff --git a/feature-libs/product/variants/assets/translations/zh/index.ts b/feature-libs/product/variants/assets/translations/zh/index.ts index e7225e09b1f..7caa77b9457 100644 --- a/feature-libs/product/variants/assets/translations/zh/index.ts +++ b/feature-libs/product/variants/assets/translations/zh/index.ts @@ -5,7 +5,6 @@ */ import productVariants from './productVariants.json'; - export const zh = { productVariants, }; diff --git a/feature-libs/product/variants/assets/translations/zh_TW/index.ts b/feature-libs/product/variants/assets/translations/zh_TW/index.ts new file mode 100644 index 00000000000..e4deb2e4148 --- /dev/null +++ b/feature-libs/product/variants/assets/translations/zh_TW/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import productVariants from './productVariants.json'; +export const zh_TW = { + productVariants, +}; diff --git a/feature-libs/quote/assets/translations/cs/index.ts b/feature-libs/quote/assets/translations/cs/index.ts new file mode 100644 index 00000000000..5b0a8409655 --- /dev/null +++ b/feature-libs/quote/assets/translations/cs/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import quote from './quote.json'; +export const cs = { + quote, +}; diff --git a/feature-libs/quote/assets/translations/de/index.ts b/feature-libs/quote/assets/translations/de/index.ts index cf41e32493e..4303620e9c9 100644 --- a/feature-libs/quote/assets/translations/de/index.ts +++ b/feature-libs/quote/assets/translations/de/index.ts @@ -5,7 +5,6 @@ */ import quote from './quote.json'; - export const de = { quote, }; diff --git a/feature-libs/quote/assets/translations/en/index.ts b/feature-libs/quote/assets/translations/en/index.ts index d1f8077f28e..5908d18e028 100644 --- a/feature-libs/quote/assets/translations/en/index.ts +++ b/feature-libs/quote/assets/translations/en/index.ts @@ -5,7 +5,6 @@ */ import quote from './quote.json'; - export const en = { quote, }; diff --git a/feature-libs/quote/assets/translations/es/index.ts b/feature-libs/quote/assets/translations/es/index.ts new file mode 100644 index 00000000000..e666d80abb7 --- /dev/null +++ b/feature-libs/quote/assets/translations/es/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import quote from './quote.json'; +export const es = { + quote, +}; diff --git a/feature-libs/quote/assets/translations/es_CO/index.ts b/feature-libs/quote/assets/translations/es_CO/index.ts new file mode 100644 index 00000000000..c66a2be8be4 --- /dev/null +++ b/feature-libs/quote/assets/translations/es_CO/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import quote from './quote.json'; +export const es_CO = { + quote, +}; diff --git a/feature-libs/quote/assets/translations/fr/index.ts b/feature-libs/quote/assets/translations/fr/index.ts new file mode 100644 index 00000000000..6831ffae3e1 --- /dev/null +++ b/feature-libs/quote/assets/translations/fr/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import quote from './quote.json'; +export const fr = { + quote, +}; diff --git a/feature-libs/quote/assets/translations/hi/index.ts b/feature-libs/quote/assets/translations/hi/index.ts new file mode 100644 index 00000000000..92d4750a8bf --- /dev/null +++ b/feature-libs/quote/assets/translations/hi/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import quote from './quote.json'; +export const hi = { + quote, +}; diff --git a/feature-libs/quote/assets/translations/hu/index.ts b/feature-libs/quote/assets/translations/hu/index.ts new file mode 100644 index 00000000000..a083a820b67 --- /dev/null +++ b/feature-libs/quote/assets/translations/hu/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import quote from './quote.json'; +export const hu = { + quote, +}; diff --git a/feature-libs/quote/assets/translations/id/index.ts b/feature-libs/quote/assets/translations/id/index.ts new file mode 100644 index 00000000000..9088d707723 --- /dev/null +++ b/feature-libs/quote/assets/translations/id/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import quote from './quote.json'; +export const id = { + quote, +}; diff --git a/feature-libs/quote/assets/translations/it/index.ts b/feature-libs/quote/assets/translations/it/index.ts new file mode 100644 index 00000000000..0d77f1e0b3b --- /dev/null +++ b/feature-libs/quote/assets/translations/it/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import quote from './quote.json'; +export const it = { + quote, +}; diff --git a/feature-libs/quote/assets/translations/ja/index.ts b/feature-libs/quote/assets/translations/ja/index.ts index bcdec171e76..cd7922d2a42 100644 --- a/feature-libs/quote/assets/translations/ja/index.ts +++ b/feature-libs/quote/assets/translations/ja/index.ts @@ -5,7 +5,6 @@ */ import quote from './quote.json'; - export const ja = { quote, }; diff --git a/feature-libs/quote/assets/translations/ko/index.ts b/feature-libs/quote/assets/translations/ko/index.ts new file mode 100644 index 00000000000..321825ad561 --- /dev/null +++ b/feature-libs/quote/assets/translations/ko/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import quote from './quote.json'; +export const ko = { + quote, +}; diff --git a/feature-libs/quote/assets/translations/pl/index.ts b/feature-libs/quote/assets/translations/pl/index.ts new file mode 100644 index 00000000000..463ff239bbd --- /dev/null +++ b/feature-libs/quote/assets/translations/pl/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import quote from './quote.json'; +export const pl = { + quote, +}; diff --git a/feature-libs/quote/assets/translations/pt/index.ts b/feature-libs/quote/assets/translations/pt/index.ts new file mode 100644 index 00000000000..287979259fb --- /dev/null +++ b/feature-libs/quote/assets/translations/pt/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import quote from './quote.json'; +export const pt = { + quote, +}; diff --git a/feature-libs/quote/assets/translations/ru/index.ts b/feature-libs/quote/assets/translations/ru/index.ts new file mode 100644 index 00000000000..52f178f136c --- /dev/null +++ b/feature-libs/quote/assets/translations/ru/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import quote from './quote.json'; +export const ru = { + quote, +}; diff --git a/feature-libs/quote/assets/translations/translations.ts b/feature-libs/quote/assets/translations/translations.ts index 801b2be9b9b..68661fca1d1 100644 --- a/feature-libs/quote/assets/translations/translations.ts +++ b/feature-libs/quote/assets/translations/translations.ts @@ -4,17 +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 quoteTranslations: TranslationResources = { +/** + * @deprecated use **specific language** translations (suffixed with language code) instead, + * like in the following example: + * ```diff + * i18n: { + * - resources: quoteTranslations + * + resources: { en: quoteTranslationsEn } + * } + * ``` + */ +export const quoteTranslations = { en, - ja, - de, - zh, }; -export const quoteTranslationChunksConfig: TranslationChunksConfig = {}; +export { cs as quoteTranslationsCs } from './cs/index'; +export { de as quoteTranslationsDe } from './de/index'; +export { en as quoteTranslationsEn } from './en/index'; +export { es as quoteTranslationsEs } from './es/index'; +export { es_CO as quoteTranslationsEs_CO } from './es_CO/index'; +export { fr as quoteTranslationsFr } from './fr/index'; +export { hi as quoteTranslationsHi } from './hi/index'; +export { hu as quoteTranslationsHu } from './hu/index'; +export { id as quoteTranslationsId } from './id/index'; +export { it as quoteTranslationsIt } from './it/index'; +export { ja as quoteTranslationsJa } from './ja/index'; +export { ko as quoteTranslationsKo } from './ko/index'; +export { pl as quoteTranslationsPl } from './pl/index'; +export { pt as quoteTranslationsPt } from './pt/index'; +export { ru as quoteTranslationsRu } from './ru/index'; +export { zh as quoteTranslationsZh } from './zh/index'; +export { zh_TW as quoteTranslationsZh_TW } from './zh_TW/index'; diff --git a/feature-libs/quote/assets/translations/zh/index.ts b/feature-libs/quote/assets/translations/zh/index.ts index f00e7ff4d8e..fc828f6b9ab 100644 --- a/feature-libs/quote/assets/translations/zh/index.ts +++ b/feature-libs/quote/assets/translations/zh/index.ts @@ -5,7 +5,6 @@ */ import quote from './quote.json'; - export const zh = { quote, }; diff --git a/feature-libs/quote/assets/translations/zh_TW/index.ts b/feature-libs/quote/assets/translations/zh_TW/index.ts new file mode 100644 index 00000000000..76c3651adc4 --- /dev/null +++ b/feature-libs/quote/assets/translations/zh_TW/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import quote from './quote.json'; +export const zh_TW = { + quote, +}; diff --git a/feature-libs/requested-delivery-date/assets/translations/cs/index.ts b/feature-libs/requested-delivery-date/assets/translations/cs/index.ts new file mode 100644 index 00000000000..c0234162652 --- /dev/null +++ b/feature-libs/requested-delivery-date/assets/translations/cs/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import requestedDeliveryDate from './requestedDeliveryDate.json'; +export const cs = { + requestedDeliveryDate, +}; diff --git a/feature-libs/requested-delivery-date/assets/translations/de/index.ts b/feature-libs/requested-delivery-date/assets/translations/de/index.ts index 808ed96a51e..e1c842e16c0 100644 --- a/feature-libs/requested-delivery-date/assets/translations/de/index.ts +++ b/feature-libs/requested-delivery-date/assets/translations/de/index.ts @@ -5,7 +5,6 @@ */ import requestedDeliveryDate from './requestedDeliveryDate.json'; - export const de = { requestedDeliveryDate, }; diff --git a/feature-libs/requested-delivery-date/assets/translations/en/index.ts b/feature-libs/requested-delivery-date/assets/translations/en/index.ts index 51e6aa11aec..d860f75e503 100644 --- a/feature-libs/requested-delivery-date/assets/translations/en/index.ts +++ b/feature-libs/requested-delivery-date/assets/translations/en/index.ts @@ -5,7 +5,6 @@ */ import requestedDeliveryDate from './requestedDeliveryDate.json'; - export const en = { requestedDeliveryDate, }; diff --git a/feature-libs/requested-delivery-date/assets/translations/es/index.ts b/feature-libs/requested-delivery-date/assets/translations/es/index.ts new file mode 100644 index 00000000000..fd5b9188df6 --- /dev/null +++ b/feature-libs/requested-delivery-date/assets/translations/es/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import requestedDeliveryDate from './requestedDeliveryDate.json'; +export const es = { + requestedDeliveryDate, +}; diff --git a/feature-libs/requested-delivery-date/assets/translations/es_CO/index.ts b/feature-libs/requested-delivery-date/assets/translations/es_CO/index.ts new file mode 100644 index 00000000000..6740f127821 --- /dev/null +++ b/feature-libs/requested-delivery-date/assets/translations/es_CO/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import requestedDeliveryDate from './requestedDeliveryDate.json'; +export const es_CO = { + requestedDeliveryDate, +}; diff --git a/feature-libs/requested-delivery-date/assets/translations/fr/index.ts b/feature-libs/requested-delivery-date/assets/translations/fr/index.ts new file mode 100644 index 00000000000..80c3bd1dbc0 --- /dev/null +++ b/feature-libs/requested-delivery-date/assets/translations/fr/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import requestedDeliveryDate from './requestedDeliveryDate.json'; +export const fr = { + requestedDeliveryDate, +}; diff --git a/feature-libs/requested-delivery-date/assets/translations/hi/index.ts b/feature-libs/requested-delivery-date/assets/translations/hi/index.ts new file mode 100644 index 00000000000..1ec6960d66b --- /dev/null +++ b/feature-libs/requested-delivery-date/assets/translations/hi/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import requestedDeliveryDate from './requestedDeliveryDate.json'; +export const hi = { + requestedDeliveryDate, +}; diff --git a/feature-libs/requested-delivery-date/assets/translations/hu/index.ts b/feature-libs/requested-delivery-date/assets/translations/hu/index.ts new file mode 100644 index 00000000000..2a58dbfe562 --- /dev/null +++ b/feature-libs/requested-delivery-date/assets/translations/hu/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import requestedDeliveryDate from './requestedDeliveryDate.json'; +export const hu = { + requestedDeliveryDate, +}; diff --git a/feature-libs/requested-delivery-date/assets/translations/id/index.ts b/feature-libs/requested-delivery-date/assets/translations/id/index.ts new file mode 100644 index 00000000000..fa56bd50d51 --- /dev/null +++ b/feature-libs/requested-delivery-date/assets/translations/id/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import requestedDeliveryDate from './requestedDeliveryDate.json'; +export const id = { + requestedDeliveryDate, +}; diff --git a/feature-libs/requested-delivery-date/assets/translations/it/index.ts b/feature-libs/requested-delivery-date/assets/translations/it/index.ts new file mode 100644 index 00000000000..eefd001f894 --- /dev/null +++ b/feature-libs/requested-delivery-date/assets/translations/it/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import requestedDeliveryDate from './requestedDeliveryDate.json'; +export const it = { + requestedDeliveryDate, +}; diff --git a/feature-libs/requested-delivery-date/assets/translations/ja/index.ts b/feature-libs/requested-delivery-date/assets/translations/ja/index.ts index bf77621a382..16ba3a38023 100644 --- a/feature-libs/requested-delivery-date/assets/translations/ja/index.ts +++ b/feature-libs/requested-delivery-date/assets/translations/ja/index.ts @@ -5,7 +5,6 @@ */ import requestedDeliveryDate from './requestedDeliveryDate.json'; - export const ja = { requestedDeliveryDate, }; diff --git a/feature-libs/requested-delivery-date/assets/translations/ko/index.ts b/feature-libs/requested-delivery-date/assets/translations/ko/index.ts new file mode 100644 index 00000000000..cacebf0b654 --- /dev/null +++ b/feature-libs/requested-delivery-date/assets/translations/ko/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import requestedDeliveryDate from './requestedDeliveryDate.json'; +export const ko = { + requestedDeliveryDate, +}; diff --git a/feature-libs/requested-delivery-date/assets/translations/pl/index.ts b/feature-libs/requested-delivery-date/assets/translations/pl/index.ts new file mode 100644 index 00000000000..03ec370b641 --- /dev/null +++ b/feature-libs/requested-delivery-date/assets/translations/pl/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import requestedDeliveryDate from './requestedDeliveryDate.json'; +export const pl = { + requestedDeliveryDate, +}; diff --git a/feature-libs/requested-delivery-date/assets/translations/pt/index.ts b/feature-libs/requested-delivery-date/assets/translations/pt/index.ts new file mode 100644 index 00000000000..892857a07e1 --- /dev/null +++ b/feature-libs/requested-delivery-date/assets/translations/pt/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import requestedDeliveryDate from './requestedDeliveryDate.json'; +export const pt = { + requestedDeliveryDate, +}; diff --git a/feature-libs/requested-delivery-date/assets/translations/ru/index.ts b/feature-libs/requested-delivery-date/assets/translations/ru/index.ts new file mode 100644 index 00000000000..da3d3a5060b --- /dev/null +++ b/feature-libs/requested-delivery-date/assets/translations/ru/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import requestedDeliveryDate from './requestedDeliveryDate.json'; +export const ru = { + requestedDeliveryDate, +}; diff --git a/feature-libs/requested-delivery-date/assets/translations/translations.ts b/feature-libs/requested-delivery-date/assets/translations/translations.ts index f18a5756473..d6ac90ddb67 100644 --- a/feature-libs/requested-delivery-date/assets/translations/translations.ts +++ b/feature-libs/requested-delivery-date/assets/translations/translations.ts @@ -4,20 +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 requestedDeliveryDateTranslations: TranslationResources = { +/** + * @deprecated use **specific language** translations (suffixed with language code) instead, + * like in the following example: + * ```diff + * i18n: { + * - resources: requestedDeliveryDateTranslations + * + resources: { en: requestedDeliveryDateTranslationsEn } + * } + * ``` + */ +export const requestedDeliveryDateTranslations = { en, - ja, - de, - zh, }; -export const requestedDeliveryDateTranslationChunksConfig: TranslationChunksConfig = - { - requestedDeliveryDate: ['requestedDeliveryDate'], - }; +export { cs as requestedDeliveryDateTranslationsCs } from './cs/index'; +export { de as requestedDeliveryDateTranslationsDe } from './de/index'; +export { en as requestedDeliveryDateTranslationsEn } from './en/index'; +export { es as requestedDeliveryDateTranslationsEs } from './es/index'; +export { es_CO as requestedDeliveryDateTranslationsEs_CO } from './es_CO/index'; +export { fr as requestedDeliveryDateTranslationsFr } from './fr/index'; +export { hi as requestedDeliveryDateTranslationsHi } from './hi/index'; +export { hu as requestedDeliveryDateTranslationsHu } from './hu/index'; +export { id as requestedDeliveryDateTranslationsId } from './id/index'; +export { it as requestedDeliveryDateTranslationsIt } from './it/index'; +export { ja as requestedDeliveryDateTranslationsJa } from './ja/index'; +export { ko as requestedDeliveryDateTranslationsKo } from './ko/index'; +export { pl as requestedDeliveryDateTranslationsPl } from './pl/index'; +export { pt as requestedDeliveryDateTranslationsPt } from './pt/index'; +export { ru as requestedDeliveryDateTranslationsRu } from './ru/index'; +export { zh as requestedDeliveryDateTranslationsZh } from './zh/index'; +export { zh_TW as requestedDeliveryDateTranslationsZh_TW } from './zh_TW/index'; diff --git a/feature-libs/requested-delivery-date/assets/translations/zh/index.ts b/feature-libs/requested-delivery-date/assets/translations/zh/index.ts index 0f498fa556d..cd25c167edb 100644 --- a/feature-libs/requested-delivery-date/assets/translations/zh/index.ts +++ b/feature-libs/requested-delivery-date/assets/translations/zh/index.ts @@ -5,7 +5,6 @@ */ import requestedDeliveryDate from './requestedDeliveryDate.json'; - export const zh = { requestedDeliveryDate, }; diff --git a/feature-libs/requested-delivery-date/assets/translations/zh_TW/index.ts b/feature-libs/requested-delivery-date/assets/translations/zh_TW/index.ts new file mode 100644 index 00000000000..c43ab4b89e8 --- /dev/null +++ b/feature-libs/requested-delivery-date/assets/translations/zh_TW/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import requestedDeliveryDate from './requestedDeliveryDate.json'; +export const zh_TW = { + requestedDeliveryDate, +}; diff --git a/feature-libs/storefinder/assets/translations/cs/index.ts b/feature-libs/storefinder/assets/translations/cs/index.ts new file mode 100644 index 00000000000..7e2bb456ae5 --- /dev/null +++ b/feature-libs/storefinder/assets/translations/cs/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import storeFinder from './storeFinder.json'; +export const cs = { + storeFinder, +}; diff --git a/feature-libs/storefinder/assets/translations/de/index.ts b/feature-libs/storefinder/assets/translations/de/index.ts index 05a8ddca7cd..e324a0c9f5c 100644 --- a/feature-libs/storefinder/assets/translations/de/index.ts +++ b/feature-libs/storefinder/assets/translations/de/index.ts @@ -5,7 +5,6 @@ */ import storeFinder from './storeFinder.json'; - export const de = { storeFinder, }; diff --git a/feature-libs/storefinder/assets/translations/en/index.ts b/feature-libs/storefinder/assets/translations/en/index.ts index 27e8c309cb9..dfc6a4a204a 100644 --- a/feature-libs/storefinder/assets/translations/en/index.ts +++ b/feature-libs/storefinder/assets/translations/en/index.ts @@ -5,7 +5,6 @@ */ import storeFinder from './storeFinder.json'; - export const en = { storeFinder, }; diff --git a/feature-libs/storefinder/assets/translations/es/index.ts b/feature-libs/storefinder/assets/translations/es/index.ts new file mode 100644 index 00000000000..b7ea7a56258 --- /dev/null +++ b/feature-libs/storefinder/assets/translations/es/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import storeFinder from './storeFinder.json'; +export const es = { + storeFinder, +}; diff --git a/feature-libs/storefinder/assets/translations/es_CO/index.ts b/feature-libs/storefinder/assets/translations/es_CO/index.ts new file mode 100644 index 00000000000..bd633c62cea --- /dev/null +++ b/feature-libs/storefinder/assets/translations/es_CO/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import storeFinder from './storeFinder.json'; +export const es_CO = { + storeFinder, +}; diff --git a/feature-libs/storefinder/assets/translations/fr/index.ts b/feature-libs/storefinder/assets/translations/fr/index.ts new file mode 100644 index 00000000000..44315648e69 --- /dev/null +++ b/feature-libs/storefinder/assets/translations/fr/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import storeFinder from './storeFinder.json'; +export const fr = { + storeFinder, +}; diff --git a/feature-libs/storefinder/assets/translations/hi/index.ts b/feature-libs/storefinder/assets/translations/hi/index.ts new file mode 100644 index 00000000000..0423c374035 --- /dev/null +++ b/feature-libs/storefinder/assets/translations/hi/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import storeFinder from './storeFinder.json'; +export const hi = { + storeFinder, +}; diff --git a/feature-libs/storefinder/assets/translations/hu/index.ts b/feature-libs/storefinder/assets/translations/hu/index.ts new file mode 100644 index 00000000000..34da6a9b78e --- /dev/null +++ b/feature-libs/storefinder/assets/translations/hu/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import storeFinder from './storeFinder.json'; +export const hu = { + storeFinder, +}; diff --git a/feature-libs/storefinder/assets/translations/id/index.ts b/feature-libs/storefinder/assets/translations/id/index.ts new file mode 100644 index 00000000000..392de744158 --- /dev/null +++ b/feature-libs/storefinder/assets/translations/id/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import storeFinder from './storeFinder.json'; +export const id = { + storeFinder, +}; diff --git a/feature-libs/storefinder/assets/translations/it/index.ts b/feature-libs/storefinder/assets/translations/it/index.ts new file mode 100644 index 00000000000..be94ee21909 --- /dev/null +++ b/feature-libs/storefinder/assets/translations/it/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import storeFinder from './storeFinder.json'; +export const it = { + storeFinder, +}; diff --git a/feature-libs/storefinder/assets/translations/ja/index.ts b/feature-libs/storefinder/assets/translations/ja/index.ts index 6e3e6fe2121..81402b7a3c8 100644 --- a/feature-libs/storefinder/assets/translations/ja/index.ts +++ b/feature-libs/storefinder/assets/translations/ja/index.ts @@ -5,7 +5,6 @@ */ import storeFinder from './storeFinder.json'; - export const ja = { storeFinder, }; diff --git a/feature-libs/storefinder/assets/translations/ko/index.ts b/feature-libs/storefinder/assets/translations/ko/index.ts new file mode 100644 index 00000000000..919307e0424 --- /dev/null +++ b/feature-libs/storefinder/assets/translations/ko/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import storeFinder from './storeFinder.json'; +export const ko = { + storeFinder, +}; diff --git a/feature-libs/storefinder/assets/translations/pl/index.ts b/feature-libs/storefinder/assets/translations/pl/index.ts new file mode 100644 index 00000000000..c59739aa7e9 --- /dev/null +++ b/feature-libs/storefinder/assets/translations/pl/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import storeFinder from './storeFinder.json'; +export const pl = { + storeFinder, +}; diff --git a/feature-libs/storefinder/assets/translations/pt/index.ts b/feature-libs/storefinder/assets/translations/pt/index.ts new file mode 100644 index 00000000000..7c401cc53e9 --- /dev/null +++ b/feature-libs/storefinder/assets/translations/pt/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import storeFinder from './storeFinder.json'; +export const pt = { + storeFinder, +}; diff --git a/feature-libs/storefinder/assets/translations/ru/index.ts b/feature-libs/storefinder/assets/translations/ru/index.ts new file mode 100644 index 00000000000..a0a9f446b8e --- /dev/null +++ b/feature-libs/storefinder/assets/translations/ru/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import storeFinder from './storeFinder.json'; +export const ru = { + storeFinder, +}; diff --git a/feature-libs/storefinder/assets/translations/translations.ts b/feature-libs/storefinder/assets/translations/translations.ts index 8e448b57afc..488e965f8e5 100644 --- a/feature-libs/storefinder/assets/translations/translations.ts +++ b/feature-libs/storefinder/assets/translations/translations.ts @@ -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 storeFinderTranslations: TranslationResources = { +/** + * @deprecated use **specific language** translations (suffixed with language code) instead, + * like in the following example: + * ```diff + * i18n: { + * - resources: storeFinderTranslations + * + resources: { en: storeFinderTranslationsEn } + * } + * ``` + */ +export const storeFinderTranslations = { en, - ja, - de, - zh, }; -export const storeFinderTranslationChunksConfig: TranslationChunksConfig = { - storeFinder: ['storeFinder'], -}; +export { cs as storeFinderTranslationsCs } from './cs/index'; +export { de as storeFinderTranslationsDe } from './de/index'; +export { en as storeFinderTranslationsEn } from './en/index'; +export { es as storeFinderTranslationsEs } from './es/index'; +export { es_CO as storeFinderTranslationsEs_CO } from './es_CO/index'; +export { fr as storeFinderTranslationsFr } from './fr/index'; +export { hi as storeFinderTranslationsHi } from './hi/index'; +export { hu as storeFinderTranslationsHu } from './hu/index'; +export { id as storeFinderTranslationsId } from './id/index'; +export { it as storeFinderTranslationsIt } from './it/index'; +export { ja as storeFinderTranslationsJa } from './ja/index'; +export { ko as storeFinderTranslationsKo } from './ko/index'; +export { pl as storeFinderTranslationsPl } from './pl/index'; +export { pt as storeFinderTranslationsPt } from './pt/index'; +export { ru as storeFinderTranslationsRu } from './ru/index'; +export { zh as storeFinderTranslationsZh } from './zh/index'; +export { zh_TW as storeFinderTranslationsZh_TW } from './zh_TW/index'; diff --git a/feature-libs/storefinder/assets/translations/zh/index.ts b/feature-libs/storefinder/assets/translations/zh/index.ts index ea34598d90b..3a469c4a40c 100644 --- a/feature-libs/storefinder/assets/translations/zh/index.ts +++ b/feature-libs/storefinder/assets/translations/zh/index.ts @@ -5,7 +5,6 @@ */ import storeFinder from './storeFinder.json'; - export const zh = { storeFinder, }; diff --git a/feature-libs/storefinder/assets/translations/zh_TW/index.ts b/feature-libs/storefinder/assets/translations/zh_TW/index.ts new file mode 100644 index 00000000000..d23ced58925 --- /dev/null +++ b/feature-libs/storefinder/assets/translations/zh_TW/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import storeFinder from './storeFinder.json'; +export const zh_TW = { + storeFinder, +}; diff --git a/feature-libs/user/account/assets/translations/cs/index.ts b/feature-libs/user/account/assets/translations/cs/index.ts new file mode 100644 index 00000000000..86715c42b17 --- /dev/null +++ b/feature-libs/user/account/assets/translations/cs/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import userAccount from './userAccount.json'; +export const cs = { + userAccount, +}; diff --git a/feature-libs/user/account/assets/translations/de/index.ts b/feature-libs/user/account/assets/translations/de/index.ts index 7a7437bec49..a996741bd4a 100644 --- a/feature-libs/user/account/assets/translations/de/index.ts +++ b/feature-libs/user/account/assets/translations/de/index.ts @@ -5,7 +5,6 @@ */ import userAccount from './userAccount.json'; - export const de = { userAccount, }; diff --git a/feature-libs/user/account/assets/translations/en/index.ts b/feature-libs/user/account/assets/translations/en/index.ts index c8fde33ea35..5e0cb5b37ac 100644 --- a/feature-libs/user/account/assets/translations/en/index.ts +++ b/feature-libs/user/account/assets/translations/en/index.ts @@ -5,7 +5,6 @@ */ import userAccount from './userAccount.json'; - export const en = { userAccount, }; diff --git a/feature-libs/user/account/assets/translations/es/index.ts b/feature-libs/user/account/assets/translations/es/index.ts new file mode 100644 index 00000000000..2c8b364dd3e --- /dev/null +++ b/feature-libs/user/account/assets/translations/es/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import userAccount from './userAccount.json'; +export const es = { + userAccount, +}; diff --git a/feature-libs/user/account/assets/translations/es_CO/index.ts b/feature-libs/user/account/assets/translations/es_CO/index.ts new file mode 100644 index 00000000000..a3e30d52235 --- /dev/null +++ b/feature-libs/user/account/assets/translations/es_CO/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import userAccount from './userAccount.json'; +export const es_CO = { + userAccount, +}; diff --git a/feature-libs/user/account/assets/translations/fr/index.ts b/feature-libs/user/account/assets/translations/fr/index.ts new file mode 100644 index 00000000000..110491c92aa --- /dev/null +++ b/feature-libs/user/account/assets/translations/fr/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import userAccount from './userAccount.json'; +export const fr = { + userAccount, +}; diff --git a/feature-libs/user/account/assets/translations/hi/index.ts b/feature-libs/user/account/assets/translations/hi/index.ts new file mode 100644 index 00000000000..ba26c502d75 --- /dev/null +++ b/feature-libs/user/account/assets/translations/hi/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import userAccount from './userAccount.json'; +export const hi = { + userAccount, +}; diff --git a/feature-libs/user/account/assets/translations/hu/index.ts b/feature-libs/user/account/assets/translations/hu/index.ts new file mode 100644 index 00000000000..32760f90fc2 --- /dev/null +++ b/feature-libs/user/account/assets/translations/hu/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import userAccount from './userAccount.json'; +export const hu = { + userAccount, +}; diff --git a/feature-libs/user/account/assets/translations/id/index.ts b/feature-libs/user/account/assets/translations/id/index.ts new file mode 100644 index 00000000000..c3066cbf3d0 --- /dev/null +++ b/feature-libs/user/account/assets/translations/id/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import userAccount from './userAccount.json'; +export const id = { + userAccount, +}; diff --git a/feature-libs/user/account/assets/translations/it/index.ts b/feature-libs/user/account/assets/translations/it/index.ts new file mode 100644 index 00000000000..7ec4e5f5d21 --- /dev/null +++ b/feature-libs/user/account/assets/translations/it/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import userAccount from './userAccount.json'; +export const it = { + userAccount, +}; diff --git a/feature-libs/user/account/assets/translations/ja/index.ts b/feature-libs/user/account/assets/translations/ja/index.ts index 5b16cd10450..1f94368eb7e 100644 --- a/feature-libs/user/account/assets/translations/ja/index.ts +++ b/feature-libs/user/account/assets/translations/ja/index.ts @@ -5,7 +5,6 @@ */ import userAccount from './userAccount.json'; - export const ja = { userAccount, }; diff --git a/feature-libs/user/account/assets/translations/ko/index.ts b/feature-libs/user/account/assets/translations/ko/index.ts new file mode 100644 index 00000000000..89ed6d24c6a --- /dev/null +++ b/feature-libs/user/account/assets/translations/ko/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import userAccount from './userAccount.json'; +export const ko = { + userAccount, +}; diff --git a/feature-libs/user/account/assets/translations/pl/index.ts b/feature-libs/user/account/assets/translations/pl/index.ts new file mode 100644 index 00000000000..2f60f0e6488 --- /dev/null +++ b/feature-libs/user/account/assets/translations/pl/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import userAccount from './userAccount.json'; +export const pl = { + userAccount, +}; diff --git a/feature-libs/user/account/assets/translations/pt/index.ts b/feature-libs/user/account/assets/translations/pt/index.ts new file mode 100644 index 00000000000..7e11494b4c6 --- /dev/null +++ b/feature-libs/user/account/assets/translations/pt/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import userAccount from './userAccount.json'; +export const pt = { + userAccount, +}; diff --git a/feature-libs/user/account/assets/translations/ru/index.ts b/feature-libs/user/account/assets/translations/ru/index.ts new file mode 100644 index 00000000000..6defc2e1b18 --- /dev/null +++ b/feature-libs/user/account/assets/translations/ru/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import userAccount from './userAccount.json'; +export const ru = { + userAccount, +}; diff --git a/feature-libs/user/account/assets/translations/translations.ts b/feature-libs/user/account/assets/translations/translations.ts index 13abb8d9269..1b7fcf30c5f 100644 --- a/feature-libs/user/account/assets/translations/translations.ts +++ b/feature-libs/user/account/assets/translations/translations.ts @@ -4,25 +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 userAccountTranslations: TranslationResources = { +/** + * @deprecated use **specific language** translations (suffixed with language code) instead, + * like in the following example: + * ```diff + * i18n: { + * - resources: userAccountTranslations + * + resources: { en: userAccountTranslationsEn } + * } + * ``` + */ +export const userAccountTranslations = { en, - ja, - de, - zh, }; -export const userAccountTranslationChunksConfig: TranslationChunksConfig = { - userAccount: [ - 'loginForm', - 'verificationTokenForm', - 'verificationTokenDialog', - 'miniLogin', - 'myAccountV2User', - ], -}; +export { cs as userAccountTranslationsCs } from './cs/index'; +export { de as userAccountTranslationsDe } from './de/index'; +export { en as userAccountTranslationsEn } from './en/index'; +export { es as userAccountTranslationsEs } from './es/index'; +export { es_CO as userAccountTranslationsEs_CO } from './es_CO/index'; +export { fr as userAccountTranslationsFr } from './fr/index'; +export { hi as userAccountTranslationsHi } from './hi/index'; +export { hu as userAccountTranslationsHu } from './hu/index'; +export { id as userAccountTranslationsId } from './id/index'; +export { it as userAccountTranslationsIt } from './it/index'; +export { ja as userAccountTranslationsJa } from './ja/index'; +export { ko as userAccountTranslationsKo } from './ko/index'; +export { pl as userAccountTranslationsPl } from './pl/index'; +export { pt as userAccountTranslationsPt } from './pt/index'; +export { ru as userAccountTranslationsRu } from './ru/index'; +export { zh as userAccountTranslationsZh } from './zh/index'; +export { zh_TW as userAccountTranslationsZh_TW } from './zh_TW/index'; diff --git a/feature-libs/user/account/assets/translations/zh/index.ts b/feature-libs/user/account/assets/translations/zh/index.ts index fd61b984472..d1cde8da586 100644 --- a/feature-libs/user/account/assets/translations/zh/index.ts +++ b/feature-libs/user/account/assets/translations/zh/index.ts @@ -5,7 +5,6 @@ */ import userAccount from './userAccount.json'; - export const zh = { userAccount, }; diff --git a/feature-libs/user/account/assets/translations/zh_TW/index.ts b/feature-libs/user/account/assets/translations/zh_TW/index.ts new file mode 100644 index 00000000000..68ccc2c2a93 --- /dev/null +++ b/feature-libs/user/account/assets/translations/zh_TW/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import userAccount from './userAccount.json'; +export const zh_TW = { + userAccount, +}; diff --git a/feature-libs/user/profile/assets/translations/cs/index.ts b/feature-libs/user/profile/assets/translations/cs/index.ts new file mode 100644 index 00000000000..a0cfa9f3fd0 --- /dev/null +++ b/feature-libs/user/profile/assets/translations/cs/index.ts @@ -0,0 +1,12 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import address from './address.json'; +import userProfile from './userProfile.json'; +export const cs = { + address, + userProfile, +}; diff --git a/feature-libs/user/profile/assets/translations/de/index.ts b/feature-libs/user/profile/assets/translations/de/index.ts index 25f028d088a..9ced9f1913a 100644 --- a/feature-libs/user/profile/assets/translations/de/index.ts +++ b/feature-libs/user/profile/assets/translations/de/index.ts @@ -4,17 +4,9 @@ * SPDX-License-Identifier: Apache-2.0 */ -import userProfile from './userProfile.json'; import address from './address.json'; -// TODO after we get translation we need to change -import myAccountV2Email from '../en/myAccountV2Email.json'; -import myAccountV2UserProfile from '../en/myAccountV2UserProfile.json'; -import myAccountV2Password from '../en/myAccountV2Password.json'; - +import userProfile from './userProfile.json'; export const de = { - userProfile, - myAccountV2UserProfile, - myAccountV2Email, - myAccountV2Password, address, + userProfile, }; diff --git a/feature-libs/user/profile/assets/translations/en/index.ts b/feature-libs/user/profile/assets/translations/en/index.ts index e0313eb96e1..d41dc8260f2 100644 --- a/feature-libs/user/profile/assets/translations/en/index.ts +++ b/feature-libs/user/profile/assets/translations/en/index.ts @@ -4,16 +4,15 @@ * SPDX-License-Identifier: Apache-2.0 */ -import userProfile from './userProfile.json'; import address from './address.json'; import myAccountV2Email from './myAccountV2Email.json'; -import myAccountV2UserProfile from './myAccountV2UserProfile.json'; import myAccountV2Password from './myAccountV2Password.json'; - +import myAccountV2UserProfile from './myAccountV2UserProfile.json'; +import userProfile from './userProfile.json'; export const en = { - userProfile, - myAccountV2UserProfile, + address, myAccountV2Email, myAccountV2Password, - address, + myAccountV2UserProfile, + userProfile, }; diff --git a/feature-libs/user/profile/assets/translations/es/index.ts b/feature-libs/user/profile/assets/translations/es/index.ts new file mode 100644 index 00000000000..abd808586e4 --- /dev/null +++ b/feature-libs/user/profile/assets/translations/es/index.ts @@ -0,0 +1,12 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import address from './address.json'; +import userProfile from './userProfile.json'; +export const es = { + address, + userProfile, +}; diff --git a/feature-libs/user/profile/assets/translations/es_CO/index.ts b/feature-libs/user/profile/assets/translations/es_CO/index.ts new file mode 100644 index 00000000000..444059e6888 --- /dev/null +++ b/feature-libs/user/profile/assets/translations/es_CO/index.ts @@ -0,0 +1,12 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import address from './address.json'; +import userProfile from './userProfile.json'; +export const es_CO = { + address, + userProfile, +}; diff --git a/feature-libs/user/profile/assets/translations/fr/index.ts b/feature-libs/user/profile/assets/translations/fr/index.ts new file mode 100644 index 00000000000..5bbee0804dd --- /dev/null +++ b/feature-libs/user/profile/assets/translations/fr/index.ts @@ -0,0 +1,12 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import address from './address.json'; +import userProfile from './userProfile.json'; +export const fr = { + address, + userProfile, +}; diff --git a/feature-libs/user/profile/assets/translations/hi/index.ts b/feature-libs/user/profile/assets/translations/hi/index.ts new file mode 100644 index 00000000000..69fea3cbfd5 --- /dev/null +++ b/feature-libs/user/profile/assets/translations/hi/index.ts @@ -0,0 +1,12 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import address from './address.json'; +import userProfile from './userProfile.json'; +export const hi = { + address, + userProfile, +}; diff --git a/feature-libs/user/profile/assets/translations/hu/index.ts b/feature-libs/user/profile/assets/translations/hu/index.ts new file mode 100644 index 00000000000..0c00e31a136 --- /dev/null +++ b/feature-libs/user/profile/assets/translations/hu/index.ts @@ -0,0 +1,12 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import address from './address.json'; +import userProfile from './userProfile.json'; +export const hu = { + address, + userProfile, +}; diff --git a/feature-libs/user/profile/assets/translations/id/index.ts b/feature-libs/user/profile/assets/translations/id/index.ts new file mode 100644 index 00000000000..a2927b4c51d --- /dev/null +++ b/feature-libs/user/profile/assets/translations/id/index.ts @@ -0,0 +1,12 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import address from './address.json'; +import userProfile from './userProfile.json'; +export const id = { + address, + userProfile, +}; diff --git a/feature-libs/user/profile/assets/translations/it/index.ts b/feature-libs/user/profile/assets/translations/it/index.ts new file mode 100644 index 00000000000..943191d4838 --- /dev/null +++ b/feature-libs/user/profile/assets/translations/it/index.ts @@ -0,0 +1,12 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import address from './address.json'; +import userProfile from './userProfile.json'; +export const it = { + address, + userProfile, +}; diff --git a/feature-libs/user/profile/assets/translations/ja/index.ts b/feature-libs/user/profile/assets/translations/ja/index.ts index 033c401d53a..075f4bd7892 100644 --- a/feature-libs/user/profile/assets/translations/ja/index.ts +++ b/feature-libs/user/profile/assets/translations/ja/index.ts @@ -4,17 +4,9 @@ * SPDX-License-Identifier: Apache-2.0 */ -import userProfile from './userProfile.json'; import address from './address.json'; -// TODO after we get translation we need to change -import myAccountV2Email from '../en/myAccountV2Email.json'; -import myAccountV2UserProfile from '../en/myAccountV2UserProfile.json'; -import myAccountV2Password from '../en/myAccountV2Password.json'; - +import userProfile from './userProfile.json'; export const ja = { - userProfile, - myAccountV2UserProfile, - myAccountV2Email, - myAccountV2Password, address, + userProfile, }; diff --git a/feature-libs/user/profile/assets/translations/ko/index.ts b/feature-libs/user/profile/assets/translations/ko/index.ts new file mode 100644 index 00000000000..986573b0009 --- /dev/null +++ b/feature-libs/user/profile/assets/translations/ko/index.ts @@ -0,0 +1,12 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import address from './address.json'; +import userProfile from './userProfile.json'; +export const ko = { + address, + userProfile, +}; diff --git a/feature-libs/user/profile/assets/translations/pl/index.ts b/feature-libs/user/profile/assets/translations/pl/index.ts new file mode 100644 index 00000000000..302e63f8187 --- /dev/null +++ b/feature-libs/user/profile/assets/translations/pl/index.ts @@ -0,0 +1,12 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import address from './address.json'; +import userProfile from './userProfile.json'; +export const pl = { + address, + userProfile, +}; diff --git a/feature-libs/user/profile/assets/translations/pt/index.ts b/feature-libs/user/profile/assets/translations/pt/index.ts new file mode 100644 index 00000000000..5d17352ac66 --- /dev/null +++ b/feature-libs/user/profile/assets/translations/pt/index.ts @@ -0,0 +1,12 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import address from './address.json'; +import userProfile from './userProfile.json'; +export const pt = { + address, + userProfile, +}; diff --git a/feature-libs/user/profile/assets/translations/ru/index.ts b/feature-libs/user/profile/assets/translations/ru/index.ts new file mode 100644 index 00000000000..1156cd835d0 --- /dev/null +++ b/feature-libs/user/profile/assets/translations/ru/index.ts @@ -0,0 +1,12 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import address from './address.json'; +import userProfile from './userProfile.json'; +export const ru = { + address, + userProfile, +}; diff --git a/feature-libs/user/profile/assets/translations/translations.ts b/feature-libs/user/profile/assets/translations/translations.ts index 4b8b7b49bfa..fbf3f949c2a 100644 --- a/feature-libs/user/profile/assets/translations/translations.ts +++ b/feature-libs/user/profile/assets/translations/translations.ts @@ -4,29 +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 userProfileTranslations: TranslationResources = { +/** + * @deprecated use **specific language** translations (suffixed with language code) instead, + * like in the following example: + * ```diff + * i18n: { + * - resources: userProfileTranslations + * + resources: { en: userProfileTranslationsEn } + * } + * ``` + */ +export const userProfileTranslations = { en, - ja, - de, - zh, }; -export const userProfileTranslationChunksConfig: TranslationChunksConfig = { - userProfile: ['updateEmailForm', 'register', 'forgottenPassword'], - myAccountV2UserProfile: ['myAccountV2UserProfile'], - myAccountV2Email: ['myAccountV2Email'], - myAccountV2Password: ['myAccountV2PasswordForm'], - address: [ - 'addressForm', - 'addressBook', - 'addressCard', - 'addressSuggestion', - 'addressMessages', - ], -}; +export { cs as userProfileTranslationsCs } from './cs/index'; +export { de as userProfileTranslationsDe } from './de/index'; +export { en as userProfileTranslationsEn } from './en/index'; +export { es as userProfileTranslationsEs } from './es/index'; +export { es_CO as userProfileTranslationsEs_CO } from './es_CO/index'; +export { fr as userProfileTranslationsFr } from './fr/index'; +export { hi as userProfileTranslationsHi } from './hi/index'; +export { hu as userProfileTranslationsHu } from './hu/index'; +export { id as userProfileTranslationsId } from './id/index'; +export { it as userProfileTranslationsIt } from './it/index'; +export { ja as userProfileTranslationsJa } from './ja/index'; +export { ko as userProfileTranslationsKo } from './ko/index'; +export { pl as userProfileTranslationsPl } from './pl/index'; +export { pt as userProfileTranslationsPt } from './pt/index'; +export { ru as userProfileTranslationsRu } from './ru/index'; +export { zh as userProfileTranslationsZh } from './zh/index'; +export { zh_TW as userProfileTranslationsZh_TW } from './zh_TW/index'; diff --git a/feature-libs/user/profile/assets/translations/zh/index.ts b/feature-libs/user/profile/assets/translations/zh/index.ts index 6df2dadae9b..d9df47dd824 100644 --- a/feature-libs/user/profile/assets/translations/zh/index.ts +++ b/feature-libs/user/profile/assets/translations/zh/index.ts @@ -4,17 +4,9 @@ * SPDX-License-Identifier: Apache-2.0 */ -import userProfile from './userProfile.json'; import address from './address.json'; -// TODO after we get translation we need to change -import myAccountV2Email from '../en/myAccountV2Email.json'; -import myAccountV2UserProfile from '../en/myAccountV2UserProfile.json'; -import myAccountV2Password from '../en/myAccountV2Password.json'; - +import userProfile from './userProfile.json'; export const zh = { - userProfile, - myAccountV2UserProfile, - myAccountV2Email, - myAccountV2Password, address, + userProfile, }; diff --git a/feature-libs/user/profile/assets/translations/zh_TW/index.ts b/feature-libs/user/profile/assets/translations/zh_TW/index.ts new file mode 100644 index 00000000000..87e44f6f8bc --- /dev/null +++ b/feature-libs/user/profile/assets/translations/zh_TW/index.ts @@ -0,0 +1,12 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import address from './address.json'; +import userProfile from './userProfile.json'; +export const zh_TW = { + address, + userProfile, +}; diff --git a/integration-libs/cdc/assets/translations/cs/index.ts b/integration-libs/cdc/assets/translations/cs/index.ts new file mode 100644 index 00000000000..587755f87ca --- /dev/null +++ b/integration-libs/cdc/assets/translations/cs/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import cdc from './cdc.json'; +export const cs = { + cdc, +}; diff --git a/integration-libs/cdc/assets/translations/de/index.ts b/integration-libs/cdc/assets/translations/de/index.ts index 511bcc32be8..bac3f47ff11 100644 --- a/integration-libs/cdc/assets/translations/de/index.ts +++ b/integration-libs/cdc/assets/translations/de/index.ts @@ -5,7 +5,6 @@ */ import cdc from './cdc.json'; - export const de = { cdc, }; diff --git a/integration-libs/cdc/assets/translations/en/index.ts b/integration-libs/cdc/assets/translations/en/index.ts index 5099c56f24f..1bf4f6ad152 100644 --- a/integration-libs/cdc/assets/translations/en/index.ts +++ b/integration-libs/cdc/assets/translations/en/index.ts @@ -5,7 +5,6 @@ */ import cdc from './cdc.json'; - export const en = { cdc, }; diff --git a/integration-libs/cdc/assets/translations/es/index.ts b/integration-libs/cdc/assets/translations/es/index.ts new file mode 100644 index 00000000000..dcef6cf29ac --- /dev/null +++ b/integration-libs/cdc/assets/translations/es/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import cdc from './cdc.json'; +export const es = { + cdc, +}; diff --git a/integration-libs/cdc/assets/translations/es_CO/index.ts b/integration-libs/cdc/assets/translations/es_CO/index.ts new file mode 100644 index 00000000000..1a76a1a6628 --- /dev/null +++ b/integration-libs/cdc/assets/translations/es_CO/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import cdc from './cdc.json'; +export const es_CO = { + cdc, +}; diff --git a/integration-libs/cdc/assets/translations/fr/index.ts b/integration-libs/cdc/assets/translations/fr/index.ts new file mode 100644 index 00000000000..b7fcb357d79 --- /dev/null +++ b/integration-libs/cdc/assets/translations/fr/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import cdc from './cdc.json'; +export const fr = { + cdc, +}; diff --git a/integration-libs/cdc/assets/translations/hi/index.ts b/integration-libs/cdc/assets/translations/hi/index.ts new file mode 100644 index 00000000000..38383ff2e80 --- /dev/null +++ b/integration-libs/cdc/assets/translations/hi/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import cdc from './cdc.json'; +export const hi = { + cdc, +}; diff --git a/integration-libs/cdc/assets/translations/hu/index.ts b/integration-libs/cdc/assets/translations/hu/index.ts new file mode 100644 index 00000000000..c5f5695b931 --- /dev/null +++ b/integration-libs/cdc/assets/translations/hu/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import cdc from './cdc.json'; +export const hu = { + cdc, +}; diff --git a/integration-libs/cdc/assets/translations/id/index.ts b/integration-libs/cdc/assets/translations/id/index.ts new file mode 100644 index 00000000000..68d010afbdf --- /dev/null +++ b/integration-libs/cdc/assets/translations/id/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import cdc from './cdc.json'; +export const id = { + cdc, +}; diff --git a/integration-libs/cdc/assets/translations/it/index.ts b/integration-libs/cdc/assets/translations/it/index.ts new file mode 100644 index 00000000000..2b115d15777 --- /dev/null +++ b/integration-libs/cdc/assets/translations/it/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import cdc from './cdc.json'; +export const it = { + cdc, +}; diff --git a/integration-libs/cdc/assets/translations/ja/index.ts b/integration-libs/cdc/assets/translations/ja/index.ts index 088737ba608..151168af68d 100644 --- a/integration-libs/cdc/assets/translations/ja/index.ts +++ b/integration-libs/cdc/assets/translations/ja/index.ts @@ -5,7 +5,6 @@ */ import cdc from './cdc.json'; - export const ja = { cdc, }; diff --git a/integration-libs/cdc/assets/translations/ko/index.ts b/integration-libs/cdc/assets/translations/ko/index.ts new file mode 100644 index 00000000000..45291e5dea2 --- /dev/null +++ b/integration-libs/cdc/assets/translations/ko/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import cdc from './cdc.json'; +export const ko = { + cdc, +}; diff --git a/integration-libs/cdc/assets/translations/pl/index.ts b/integration-libs/cdc/assets/translations/pl/index.ts new file mode 100644 index 00000000000..6d3b27f2e5e --- /dev/null +++ b/integration-libs/cdc/assets/translations/pl/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import cdc from './cdc.json'; +export const pl = { + cdc, +}; diff --git a/integration-libs/cdc/assets/translations/pt/index.ts b/integration-libs/cdc/assets/translations/pt/index.ts new file mode 100644 index 00000000000..70471778ddc --- /dev/null +++ b/integration-libs/cdc/assets/translations/pt/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import cdc from './cdc.json'; +export const pt = { + cdc, +}; diff --git a/integration-libs/cdc/assets/translations/ru/index.ts b/integration-libs/cdc/assets/translations/ru/index.ts new file mode 100644 index 00000000000..d8e827a9569 --- /dev/null +++ b/integration-libs/cdc/assets/translations/ru/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import cdc from './cdc.json'; +export const ru = { + cdc, +}; diff --git a/integration-libs/cdc/assets/translations/translations.ts b/integration-libs/cdc/assets/translations/translations.ts index 733d30e0208..7dd3e3fbfa3 100644 --- a/integration-libs/cdc/assets/translations/translations.ts +++ b/integration-libs/cdc/assets/translations/translations.ts @@ -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 cdcTranslations: TranslationResources = { +/** + * @deprecated use **specific language** translations (suffixed with language code) instead, + * like in the following example: + * ```diff + * i18n: { + * - resources: cdcTranslations + * + resources: { en: cdcTranslationsEn } + * } + * ``` + */ +export const cdcTranslations = { en, - ja, - de, - zh, }; -export const cdcTranslationChunksConfig: TranslationChunksConfig = { - cdc: ['reconsent', 'cdcProfile'], -}; +export { cs as cdcTranslationsCs } from './cs/index'; +export { de as cdcTranslationsDe } from './de/index'; +export { en as cdcTranslationsEn } from './en/index'; +export { es as cdcTranslationsEs } from './es/index'; +export { es_CO as cdcTranslationsEs_CO } from './es_CO/index'; +export { fr as cdcTranslationsFr } from './fr/index'; +export { hi as cdcTranslationsHi } from './hi/index'; +export { hu as cdcTranslationsHu } from './hu/index'; +export { id as cdcTranslationsId } from './id/index'; +export { it as cdcTranslationsIt } from './it/index'; +export { ja as cdcTranslationsJa } from './ja/index'; +export { ko as cdcTranslationsKo } from './ko/index'; +export { pl as cdcTranslationsPl } from './pl/index'; +export { pt as cdcTranslationsPt } from './pt/index'; +export { ru as cdcTranslationsRu } from './ru/index'; +export { zh as cdcTranslationsZh } from './zh/index'; +export { zh_TW as cdcTranslationsZh_TW } from './zh_TW/index'; diff --git a/integration-libs/cdc/assets/translations/zh/index.ts b/integration-libs/cdc/assets/translations/zh/index.ts index 58ba9b49a09..3c8f9a60ab9 100644 --- a/integration-libs/cdc/assets/translations/zh/index.ts +++ b/integration-libs/cdc/assets/translations/zh/index.ts @@ -5,7 +5,6 @@ */ import cdc from './cdc.json'; - export const zh = { cdc, }; diff --git a/integration-libs/cdc/assets/translations/zh_TW/index.ts b/integration-libs/cdc/assets/translations/zh_TW/index.ts new file mode 100644 index 00000000000..ba0749f6c1c --- /dev/null +++ b/integration-libs/cdc/assets/translations/zh_TW/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import cdc from './cdc.json'; +export const zh_TW = { + cdc, +}; diff --git a/integration-libs/cds/assets/translations/cs/index.ts b/integration-libs/cds/assets/translations/cs/index.ts new file mode 100644 index 00000000000..07861f81d0d --- /dev/null +++ b/integration-libs/cds/assets/translations/cs/index.ts @@ -0,0 +1,12 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import recentSearches from './recentSearches.json'; +import trendingSearches from './trendingSearches.json'; +export const cs = { + recentSearches, + trendingSearches, +}; diff --git a/integration-libs/cds/assets/translations/de/index.ts b/integration-libs/cds/assets/translations/de/index.ts index 2bc2daf5607..8226c425d59 100644 --- a/integration-libs/cds/assets/translations/de/index.ts +++ b/integration-libs/cds/assets/translations/de/index.ts @@ -7,6 +7,6 @@ import recentSearches from './recentSearches.json'; import trendingSearches from './trendingSearches.json'; export const de = { - cdsRecentSearches: recentSearches, - cdsTrendingSearches: trendingSearches, + recentSearches, + trendingSearches, }; diff --git a/integration-libs/cds/assets/translations/en/index.ts b/integration-libs/cds/assets/translations/en/index.ts index 28b90c44510..5b955a81c86 100644 --- a/integration-libs/cds/assets/translations/en/index.ts +++ b/integration-libs/cds/assets/translations/en/index.ts @@ -7,6 +7,6 @@ import recentSearches from './recentSearches.json'; import trendingSearches from './trendingSearches.json'; export const en = { - cdsRecentSearches: recentSearches, - cdsTrendingSearches: trendingSearches, + recentSearches, + trendingSearches, }; diff --git a/integration-libs/cds/assets/translations/es/index.ts b/integration-libs/cds/assets/translations/es/index.ts new file mode 100644 index 00000000000..a6c7a2565c9 --- /dev/null +++ b/integration-libs/cds/assets/translations/es/index.ts @@ -0,0 +1,12 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import recentSearches from './recentSearches.json'; +import trendingSearches from './trendingSearches.json'; +export const es = { + recentSearches, + trendingSearches, +}; diff --git a/integration-libs/cds/assets/translations/es_CO/index.ts b/integration-libs/cds/assets/translations/es_CO/index.ts new file mode 100644 index 00000000000..3ef609d30c2 --- /dev/null +++ b/integration-libs/cds/assets/translations/es_CO/index.ts @@ -0,0 +1,12 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import recentSearches from './recentSearches.json'; +import trendingSearches from './trendingSearches.json'; +export const es_CO = { + recentSearches, + trendingSearches, +}; diff --git a/integration-libs/cds/assets/translations/fr/index.ts b/integration-libs/cds/assets/translations/fr/index.ts new file mode 100644 index 00000000000..4e6f8564a35 --- /dev/null +++ b/integration-libs/cds/assets/translations/fr/index.ts @@ -0,0 +1,12 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import recentSearches from './recentSearches.json'; +import trendingSearches from './trendingSearches.json'; +export const fr = { + recentSearches, + trendingSearches, +}; diff --git a/integration-libs/cds/assets/translations/hi/index.ts b/integration-libs/cds/assets/translations/hi/index.ts new file mode 100644 index 00000000000..9666dfa673f --- /dev/null +++ b/integration-libs/cds/assets/translations/hi/index.ts @@ -0,0 +1,12 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import recentSearches from './recentSearches.json'; +import trendingSearches from './trendingSearches.json'; +export const hi = { + recentSearches, + trendingSearches, +}; diff --git a/integration-libs/cds/assets/translations/hu/index.ts b/integration-libs/cds/assets/translations/hu/index.ts new file mode 100644 index 00000000000..d3af095bdc7 --- /dev/null +++ b/integration-libs/cds/assets/translations/hu/index.ts @@ -0,0 +1,12 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import recentSearches from './recentSearches.json'; +import trendingSearches from './trendingSearches.json'; +export const hu = { + recentSearches, + trendingSearches, +}; diff --git a/integration-libs/cds/assets/translations/id/index.ts b/integration-libs/cds/assets/translations/id/index.ts new file mode 100644 index 00000000000..583bee5cc90 --- /dev/null +++ b/integration-libs/cds/assets/translations/id/index.ts @@ -0,0 +1,12 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import recentSearches from './recentSearches.json'; +import trendingSearches from './trendingSearches.json'; +export const id = { + recentSearches, + trendingSearches, +}; diff --git a/integration-libs/cds/assets/translations/it/index.ts b/integration-libs/cds/assets/translations/it/index.ts new file mode 100644 index 00000000000..4da6a80b5e2 --- /dev/null +++ b/integration-libs/cds/assets/translations/it/index.ts @@ -0,0 +1,12 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import recentSearches from './recentSearches.json'; +import trendingSearches from './trendingSearches.json'; +export const it = { + recentSearches, + trendingSearches, +}; diff --git a/integration-libs/cds/assets/translations/ja/index.ts b/integration-libs/cds/assets/translations/ja/index.ts index 1de0da2fb73..f0d4deac07c 100644 --- a/integration-libs/cds/assets/translations/ja/index.ts +++ b/integration-libs/cds/assets/translations/ja/index.ts @@ -7,6 +7,6 @@ import recentSearches from './recentSearches.json'; import trendingSearches from './trendingSearches.json'; export const ja = { - cdsRecentSearches: recentSearches, - cdsTrendingSearches: trendingSearches, + recentSearches, + trendingSearches, }; diff --git a/integration-libs/cds/assets/translations/ko/index.ts b/integration-libs/cds/assets/translations/ko/index.ts new file mode 100644 index 00000000000..b156eb6a7e3 --- /dev/null +++ b/integration-libs/cds/assets/translations/ko/index.ts @@ -0,0 +1,12 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import recentSearches from './recentSearches.json'; +import trendingSearches from './trendingSearches.json'; +export const ko = { + recentSearches, + trendingSearches, +}; diff --git a/integration-libs/cds/assets/translations/pl/index.ts b/integration-libs/cds/assets/translations/pl/index.ts new file mode 100644 index 00000000000..a425319a231 --- /dev/null +++ b/integration-libs/cds/assets/translations/pl/index.ts @@ -0,0 +1,12 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import recentSearches from './recentSearches.json'; +import trendingSearches from './trendingSearches.json'; +export const pl = { + recentSearches, + trendingSearches, +}; diff --git a/integration-libs/cds/assets/translations/pt/index.ts b/integration-libs/cds/assets/translations/pt/index.ts new file mode 100644 index 00000000000..4ecb63e9cc5 --- /dev/null +++ b/integration-libs/cds/assets/translations/pt/index.ts @@ -0,0 +1,12 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import recentSearches from './recentSearches.json'; +import trendingSearches from './trendingSearches.json'; +export const pt = { + recentSearches, + trendingSearches, +}; diff --git a/integration-libs/cds/assets/translations/ru/index.ts b/integration-libs/cds/assets/translations/ru/index.ts new file mode 100644 index 00000000000..a5c3317fa14 --- /dev/null +++ b/integration-libs/cds/assets/translations/ru/index.ts @@ -0,0 +1,12 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import recentSearches from './recentSearches.json'; +import trendingSearches from './trendingSearches.json'; +export const ru = { + recentSearches, + trendingSearches, +}; diff --git a/integration-libs/cds/assets/translations/translations.ts b/integration-libs/cds/assets/translations/translations.ts index da7c67664d3..b12aa96aa32 100644 --- a/integration-libs/cds/assets/translations/translations.ts +++ b/integration-libs/cds/assets/translations/translations.ts @@ -4,20 +4,36 @@ * SPDX-License-Identifier: Apache-2.0 */ -import { TranslationChunksConfig, TranslationResources } from '@spartacus/core'; -import { en } from './en'; -import { ja } from './ja'; -import { de } from './de'; -import { zh } from './zh'; +import { en } from './en/index'; -export const cdsTranslations: TranslationResources = { +/** + * @deprecated use **specific language** translations (suffixed with language code) instead, + * like in the following example: + * ```diff + * i18n: { + * - resources: cdsTranslations + * + resources: { en: cdsTranslationsEn } + * } + * ``` + */ +export const cdsTranslations = { en, - ja, - de, - zh, }; -export const cdsTranslationChunksConfig: TranslationChunksConfig = { - cdsRecentSearches: ['cdsRecentSearches'], - cdsTrendingSearches: ['cdsTrendingSearches'], -}; +export { cs as cdsTranslationsCs } from './cs/index'; +export { de as cdsTranslationsDe } from './de/index'; +export { en as cdsTranslationsEn } from './en/index'; +export { es as cdsTranslationsEs } from './es/index'; +export { es_CO as cdsTranslationsEs_CO } from './es_CO/index'; +export { fr as cdsTranslationsFr } from './fr/index'; +export { hi as cdsTranslationsHi } from './hi/index'; +export { hu as cdsTranslationsHu } from './hu/index'; +export { id as cdsTranslationsId } from './id/index'; +export { it as cdsTranslationsIt } from './it/index'; +export { ja as cdsTranslationsJa } from './ja/index'; +export { ko as cdsTranslationsKo } from './ko/index'; +export { pl as cdsTranslationsPl } from './pl/index'; +export { pt as cdsTranslationsPt } from './pt/index'; +export { ru as cdsTranslationsRu } from './ru/index'; +export { zh as cdsTranslationsZh } from './zh/index'; +export { zh_TW as cdsTranslationsZh_TW } from './zh_TW/index'; diff --git a/integration-libs/cds/assets/translations/zh/index.ts b/integration-libs/cds/assets/translations/zh/index.ts index 3e879fbc651..7f3c424881b 100644 --- a/integration-libs/cds/assets/translations/zh/index.ts +++ b/integration-libs/cds/assets/translations/zh/index.ts @@ -7,6 +7,6 @@ import recentSearches from './recentSearches.json'; import trendingSearches from './trendingSearches.json'; export const zh = { - cdsRecentSearches: recentSearches, - cdsTrendingSearches: trendingSearches, + recentSearches, + trendingSearches, }; diff --git a/integration-libs/cds/assets/translations/zh_TW/index.ts b/integration-libs/cds/assets/translations/zh_TW/index.ts new file mode 100644 index 00000000000..e09e77a3305 --- /dev/null +++ b/integration-libs/cds/assets/translations/zh_TW/index.ts @@ -0,0 +1,12 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import recentSearches from './recentSearches.json'; +import trendingSearches from './trendingSearches.json'; +export const zh_TW = { + recentSearches, + trendingSearches, +}; diff --git a/integration-libs/cpq-quote/assets/translations/cs/index.ts b/integration-libs/cpq-quote/assets/translations/cs/index.ts new file mode 100644 index 00000000000..e08e191d963 --- /dev/null +++ b/integration-libs/cpq-quote/assets/translations/cs/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import cpqQuote from './cpq-quote.json'; +export const cs = { + cpqQuote, +}; diff --git a/integration-libs/cpq-quote/assets/translations/de/index.ts b/integration-libs/cpq-quote/assets/translations/de/index.ts index 7f47a03c69a..9127c3a5be3 100644 --- a/integration-libs/cpq-quote/assets/translations/de/index.ts +++ b/integration-libs/cpq-quote/assets/translations/de/index.ts @@ -4,10 +4,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -import cpqQuoteHeading from './cpq-quote.json'; -import discountCaption from './cpq-quote.json'; - +import cpqQuote from './cpq-quote.json'; export const de = { - cpqQuoteHeading, - discountCaption, + cpqQuote, }; diff --git a/integration-libs/cpq-quote/assets/translations/en/index.ts b/integration-libs/cpq-quote/assets/translations/en/index.ts index f2a171a8c11..0576f5f9fd4 100644 --- a/integration-libs/cpq-quote/assets/translations/en/index.ts +++ b/integration-libs/cpq-quote/assets/translations/en/index.ts @@ -4,10 +4,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -import cpqQuoteHeading from './cpq-quote.json'; -import discountCaption from './cpq-quote.json'; - +import cpqQuote from './cpq-quote.json'; export const en = { - cpqQuoteHeading, - discountCaption, + cpqQuote, }; diff --git a/integration-libs/cpq-quote/assets/translations/es/index.ts b/integration-libs/cpq-quote/assets/translations/es/index.ts new file mode 100644 index 00000000000..03a05cb77c6 --- /dev/null +++ b/integration-libs/cpq-quote/assets/translations/es/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import cpqQuote from './cpq-quote.json'; +export const es = { + cpqQuote, +}; diff --git a/integration-libs/cpq-quote/assets/translations/es_CO/index.ts b/integration-libs/cpq-quote/assets/translations/es_CO/index.ts new file mode 100644 index 00000000000..07f8ea45ac4 --- /dev/null +++ b/integration-libs/cpq-quote/assets/translations/es_CO/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import cpqQuote from './cpq-quote.json'; +export const es_CO = { + cpqQuote, +}; diff --git a/integration-libs/cpq-quote/assets/translations/fr/index.ts b/integration-libs/cpq-quote/assets/translations/fr/index.ts new file mode 100644 index 00000000000..e48ae5b2b73 --- /dev/null +++ b/integration-libs/cpq-quote/assets/translations/fr/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import cpqQuote from './cpq-quote.json'; +export const fr = { + cpqQuote, +}; diff --git a/integration-libs/cpq-quote/assets/translations/hi/index.ts b/integration-libs/cpq-quote/assets/translations/hi/index.ts new file mode 100644 index 00000000000..73f87082efd --- /dev/null +++ b/integration-libs/cpq-quote/assets/translations/hi/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import cpqQuote from './cpq-quote.json'; +export const hi = { + cpqQuote, +}; diff --git a/integration-libs/cpq-quote/assets/translations/hu/index.ts b/integration-libs/cpq-quote/assets/translations/hu/index.ts new file mode 100644 index 00000000000..269b1d3bfb9 --- /dev/null +++ b/integration-libs/cpq-quote/assets/translations/hu/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import cpqQuote from './cpq-quote.json'; +export const hu = { + cpqQuote, +}; diff --git a/integration-libs/cpq-quote/assets/translations/id/index.ts b/integration-libs/cpq-quote/assets/translations/id/index.ts new file mode 100644 index 00000000000..9fbb69d4181 --- /dev/null +++ b/integration-libs/cpq-quote/assets/translations/id/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import cpqQuote from './cpq-quote.json'; +export const id = { + cpqQuote, +}; diff --git a/integration-libs/cpq-quote/assets/translations/it/index.ts b/integration-libs/cpq-quote/assets/translations/it/index.ts new file mode 100644 index 00000000000..2e9076c48d6 --- /dev/null +++ b/integration-libs/cpq-quote/assets/translations/it/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import cpqQuote from './cpq-quote.json'; +export const it = { + cpqQuote, +}; diff --git a/integration-libs/cpq-quote/assets/translations/ja/index.ts b/integration-libs/cpq-quote/assets/translations/ja/index.ts index de5faa05642..140673dfe8d 100644 --- a/integration-libs/cpq-quote/assets/translations/ja/index.ts +++ b/integration-libs/cpq-quote/assets/translations/ja/index.ts @@ -4,10 +4,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -import cpqQuoteHeading from './cpq-quote.json'; -import discountCaption from './cpq-quote.json'; - +import cpqQuote from './cpq-quote.json'; export const ja = { - cpqQuoteHeading, - discountCaption, + cpqQuote, }; diff --git a/integration-libs/cpq-quote/assets/translations/ko/index.ts b/integration-libs/cpq-quote/assets/translations/ko/index.ts new file mode 100644 index 00000000000..12b1d5aabbd --- /dev/null +++ b/integration-libs/cpq-quote/assets/translations/ko/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import cpqQuote from './cpq-quote.json'; +export const ko = { + cpqQuote, +}; diff --git a/integration-libs/cpq-quote/assets/translations/pl/index.ts b/integration-libs/cpq-quote/assets/translations/pl/index.ts new file mode 100644 index 00000000000..07c9e2c7150 --- /dev/null +++ b/integration-libs/cpq-quote/assets/translations/pl/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import cpqQuote from './cpq-quote.json'; +export const pl = { + cpqQuote, +}; diff --git a/integration-libs/cpq-quote/assets/translations/pt/index.ts b/integration-libs/cpq-quote/assets/translations/pt/index.ts new file mode 100644 index 00000000000..f0d1cf164d6 --- /dev/null +++ b/integration-libs/cpq-quote/assets/translations/pt/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import cpqQuote from './cpq-quote.json'; +export const pt = { + cpqQuote, +}; diff --git a/integration-libs/cpq-quote/assets/translations/ru/index.ts b/integration-libs/cpq-quote/assets/translations/ru/index.ts new file mode 100644 index 00000000000..4ad3dfaebb9 --- /dev/null +++ b/integration-libs/cpq-quote/assets/translations/ru/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import cpqQuote from './cpq-quote.json'; +export const ru = { + cpqQuote, +}; diff --git a/integration-libs/cpq-quote/assets/translations/translations.ts b/integration-libs/cpq-quote/assets/translations/translations.ts index bc9b7f155f7..71dd49ccf44 100644 --- a/integration-libs/cpq-quote/assets/translations/translations.ts +++ b/integration-libs/cpq-quote/assets/translations/translations.ts @@ -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 cpqquoteTranslations: TranslationResources = { +/** + * @deprecated use **specific language** translations (suffixed with language code) instead, + * like in the following example: + * ```diff + * i18n: { + * - resources: cpqquoteTranslations + * + resources: { en: cpqquoteTranslationsEn } + * } + * ``` + */ +export const cpqquoteTranslations = { en, - ja, - de, - zh, }; -export const cpqquoteTranslationChunksConfig: TranslationChunksConfig = { - cpqQuoteHeading: ['cpqQuoteHeading'], -}; +export { cs as cpqquoteTranslationsCs } from './cs/index'; +export { de as cpqquoteTranslationsDe } from './de/index'; +export { en as cpqquoteTranslationsEn } from './en/index'; +export { es as cpqquoteTranslationsEs } from './es/index'; +export { es_CO as cpqquoteTranslationsEs_CO } from './es_CO/index'; +export { fr as cpqquoteTranslationsFr } from './fr/index'; +export { hi as cpqquoteTranslationsHi } from './hi/index'; +export { hu as cpqquoteTranslationsHu } from './hu/index'; +export { id as cpqquoteTranslationsId } from './id/index'; +export { it as cpqquoteTranslationsIt } from './it/index'; +export { ja as cpqquoteTranslationsJa } from './ja/index'; +export { ko as cpqquoteTranslationsKo } from './ko/index'; +export { pl as cpqquoteTranslationsPl } from './pl/index'; +export { pt as cpqquoteTranslationsPt } from './pt/index'; +export { ru as cpqquoteTranslationsRu } from './ru/index'; +export { zh as cpqquoteTranslationsZh } from './zh/index'; +export { zh_TW as cpqquoteTranslationsZh_TW } from './zh_TW/index'; diff --git a/integration-libs/cpq-quote/assets/translations/zh/index.ts b/integration-libs/cpq-quote/assets/translations/zh/index.ts index d74397c29b0..3c449345382 100644 --- a/integration-libs/cpq-quote/assets/translations/zh/index.ts +++ b/integration-libs/cpq-quote/assets/translations/zh/index.ts @@ -4,10 +4,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -import cpqQuoteHeading from './cpq-quote.json'; -import discountCaption from './cpq-quote.json'; - +import cpqQuote from './cpq-quote.json'; export const zh = { - cpqQuoteHeading, - discountCaption, + cpqQuote, }; diff --git a/integration-libs/cpq-quote/assets/translations/zh_TW/index.ts b/integration-libs/cpq-quote/assets/translations/zh_TW/index.ts new file mode 100644 index 00000000000..a76a17cf0b7 --- /dev/null +++ b/integration-libs/cpq-quote/assets/translations/zh_TW/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import cpqQuote from './cpq-quote.json'; +export const zh_TW = { + cpqQuote, +}; diff --git a/integration-libs/digital-payments/assets/translations/cs/index.ts b/integration-libs/digital-payments/assets/translations/cs/index.ts new file mode 100644 index 00000000000..d164aa1bc13 --- /dev/null +++ b/integration-libs/digital-payments/assets/translations/cs/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import dpPaymentForm from './dpPaymentForm.json'; +export const cs = { + dpPaymentForm, +}; diff --git a/integration-libs/digital-payments/assets/translations/de/index.ts b/integration-libs/digital-payments/assets/translations/de/index.ts index ef9d1e963f4..2324b2e3225 100644 --- a/integration-libs/digital-payments/assets/translations/de/index.ts +++ b/integration-libs/digital-payments/assets/translations/de/index.ts @@ -5,7 +5,6 @@ */ import dpPaymentForm from './dpPaymentForm.json'; - export const de = { dpPaymentForm, }; diff --git a/integration-libs/digital-payments/assets/translations/en/index.ts b/integration-libs/digital-payments/assets/translations/en/index.ts index a095bf02874..cbd5dc41c77 100644 --- a/integration-libs/digital-payments/assets/translations/en/index.ts +++ b/integration-libs/digital-payments/assets/translations/en/index.ts @@ -5,7 +5,6 @@ */ import dpPaymentForm from './dpPaymentForm.json'; - export const en = { dpPaymentForm, }; diff --git a/integration-libs/digital-payments/assets/translations/es/index.ts b/integration-libs/digital-payments/assets/translations/es/index.ts new file mode 100644 index 00000000000..ccdead3751c --- /dev/null +++ b/integration-libs/digital-payments/assets/translations/es/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import dpPaymentForm from './dpPaymentForm.json'; +export const es = { + dpPaymentForm, +}; diff --git a/integration-libs/digital-payments/assets/translations/es_CO/index.ts b/integration-libs/digital-payments/assets/translations/es_CO/index.ts new file mode 100644 index 00000000000..7574336887a --- /dev/null +++ b/integration-libs/digital-payments/assets/translations/es_CO/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import dpPaymentForm from './dpPaymentForm.json'; +export const es_CO = { + dpPaymentForm, +}; diff --git a/integration-libs/digital-payments/assets/translations/fr/index.ts b/integration-libs/digital-payments/assets/translations/fr/index.ts new file mode 100644 index 00000000000..8b771af49cd --- /dev/null +++ b/integration-libs/digital-payments/assets/translations/fr/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import dpPaymentForm from './dpPaymentForm.json'; +export const fr = { + dpPaymentForm, +}; diff --git a/integration-libs/digital-payments/assets/translations/hi/index.ts b/integration-libs/digital-payments/assets/translations/hi/index.ts new file mode 100644 index 00000000000..814afacfb3c --- /dev/null +++ b/integration-libs/digital-payments/assets/translations/hi/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import dpPaymentForm from './dpPaymentForm.json'; +export const hi = { + dpPaymentForm, +}; diff --git a/integration-libs/digital-payments/assets/translations/hu/index.ts b/integration-libs/digital-payments/assets/translations/hu/index.ts new file mode 100644 index 00000000000..5587b0449c5 --- /dev/null +++ b/integration-libs/digital-payments/assets/translations/hu/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import dpPaymentForm from './dpPaymentForm.json'; +export const hu = { + dpPaymentForm, +}; diff --git a/integration-libs/digital-payments/assets/translations/id/index.ts b/integration-libs/digital-payments/assets/translations/id/index.ts new file mode 100644 index 00000000000..2423a474fa9 --- /dev/null +++ b/integration-libs/digital-payments/assets/translations/id/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import dpPaymentForm from './dpPaymentForm.json'; +export const id = { + dpPaymentForm, +}; diff --git a/integration-libs/digital-payments/assets/translations/it/index.ts b/integration-libs/digital-payments/assets/translations/it/index.ts new file mode 100644 index 00000000000..ef093d365b3 --- /dev/null +++ b/integration-libs/digital-payments/assets/translations/it/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import dpPaymentForm from './dpPaymentForm.json'; +export const it = { + dpPaymentForm, +}; diff --git a/integration-libs/digital-payments/assets/translations/ja/index.ts b/integration-libs/digital-payments/assets/translations/ja/index.ts index dd7d629d066..78c3495f37c 100644 --- a/integration-libs/digital-payments/assets/translations/ja/index.ts +++ b/integration-libs/digital-payments/assets/translations/ja/index.ts @@ -5,7 +5,6 @@ */ import dpPaymentForm from './dpPaymentForm.json'; - export const ja = { dpPaymentForm, }; diff --git a/integration-libs/digital-payments/assets/translations/ko/index.ts b/integration-libs/digital-payments/assets/translations/ko/index.ts new file mode 100644 index 00000000000..5c7bd94b137 --- /dev/null +++ b/integration-libs/digital-payments/assets/translations/ko/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import dpPaymentForm from './dpPaymentForm.json'; +export const ko = { + dpPaymentForm, +}; diff --git a/integration-libs/digital-payments/assets/translations/pl/index.ts b/integration-libs/digital-payments/assets/translations/pl/index.ts new file mode 100644 index 00000000000..82b05380e61 --- /dev/null +++ b/integration-libs/digital-payments/assets/translations/pl/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import dpPaymentForm from './dpPaymentForm.json'; +export const pl = { + dpPaymentForm, +}; diff --git a/integration-libs/digital-payments/assets/translations/pt/index.ts b/integration-libs/digital-payments/assets/translations/pt/index.ts new file mode 100644 index 00000000000..baf47769fd6 --- /dev/null +++ b/integration-libs/digital-payments/assets/translations/pt/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import dpPaymentForm from './dpPaymentForm.json'; +export const pt = { + dpPaymentForm, +}; diff --git a/integration-libs/digital-payments/assets/translations/ru/index.ts b/integration-libs/digital-payments/assets/translations/ru/index.ts new file mode 100644 index 00000000000..56915b7deca --- /dev/null +++ b/integration-libs/digital-payments/assets/translations/ru/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import dpPaymentForm from './dpPaymentForm.json'; +export const ru = { + dpPaymentForm, +}; diff --git a/integration-libs/digital-payments/assets/translations/translations.ts b/integration-libs/digital-payments/assets/translations/translations.ts index c280e4f97ce..874c4b3f7e8 100644 --- a/integration-libs/digital-payments/assets/translations/translations.ts +++ b/integration-libs/digital-payments/assets/translations/translations.ts @@ -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 dpTranslations: TranslationResources = { +/** + * @deprecated use **specific language** translations (suffixed with language code) instead, + * like in the following example: + * ```diff + * i18n: { + * - resources: dpTranslations + * + resources: { en: dpTranslationsEn } + * } + * ``` + */ +export const dpTranslations = { en, - ja, - de, - zh, }; -export const dpTranslationChunksConfig: TranslationChunksConfig = { - dpPaymentForm: ['dpPaymentForm'], -}; +export { cs as dpTranslationsCs } from './cs/index'; +export { de as dpTranslationsDe } from './de/index'; +export { en as dpTranslationsEn } from './en/index'; +export { es as dpTranslationsEs } from './es/index'; +export { es_CO as dpTranslationsEs_CO } from './es_CO/index'; +export { fr as dpTranslationsFr } from './fr/index'; +export { hi as dpTranslationsHi } from './hi/index'; +export { hu as dpTranslationsHu } from './hu/index'; +export { id as dpTranslationsId } from './id/index'; +export { it as dpTranslationsIt } from './it/index'; +export { ja as dpTranslationsJa } from './ja/index'; +export { ko as dpTranslationsKo } from './ko/index'; +export { pl as dpTranslationsPl } from './pl/index'; +export { pt as dpTranslationsPt } from './pt/index'; +export { ru as dpTranslationsRu } from './ru/index'; +export { zh as dpTranslationsZh } from './zh/index'; +export { zh_TW as dpTranslationsZh_TW } from './zh_TW/index'; diff --git a/integration-libs/digital-payments/assets/translations/zh/index.ts b/integration-libs/digital-payments/assets/translations/zh/index.ts index 2eb12f95156..a38fc57fd0b 100644 --- a/integration-libs/digital-payments/assets/translations/zh/index.ts +++ b/integration-libs/digital-payments/assets/translations/zh/index.ts @@ -5,7 +5,6 @@ */ import dpPaymentForm from './dpPaymentForm.json'; - export const zh = { dpPaymentForm, }; diff --git a/integration-libs/digital-payments/assets/translations/zh_TW/index.ts b/integration-libs/digital-payments/assets/translations/zh_TW/index.ts new file mode 100644 index 00000000000..1276da6f9df --- /dev/null +++ b/integration-libs/digital-payments/assets/translations/zh_TW/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import dpPaymentForm from './dpPaymentForm.json'; +export const zh_TW = { + dpPaymentForm, +}; diff --git a/integration-libs/epd-visualization/assets/translations/cs/index.ts b/integration-libs/epd-visualization/assets/translations/cs/index.ts new file mode 100644 index 00000000000..c43d90c9b32 --- /dev/null +++ b/integration-libs/epd-visualization/assets/translations/cs/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import epdVisualization from './epdVisualization.json'; +export const cs = { + epdVisualization, +}; diff --git a/integration-libs/epd-visualization/assets/translations/de/index.ts b/integration-libs/epd-visualization/assets/translations/de/index.ts index 65e4d5de2b0..eeeda9a003a 100644 --- a/integration-libs/epd-visualization/assets/translations/de/index.ts +++ b/integration-libs/epd-visualization/assets/translations/de/index.ts @@ -5,7 +5,6 @@ */ import epdVisualization from './epdVisualization.json'; - export const de = { epdVisualization, }; diff --git a/integration-libs/epd-visualization/assets/translations/en/index.ts b/integration-libs/epd-visualization/assets/translations/en/index.ts index d5c57c182f3..738e1d555cb 100644 --- a/integration-libs/epd-visualization/assets/translations/en/index.ts +++ b/integration-libs/epd-visualization/assets/translations/en/index.ts @@ -5,7 +5,6 @@ */ import epdVisualization from './epdVisualization.json'; - export const en = { epdVisualization, }; diff --git a/integration-libs/epd-visualization/assets/translations/es/index.ts b/integration-libs/epd-visualization/assets/translations/es/index.ts new file mode 100644 index 00000000000..2c4c6381c9f --- /dev/null +++ b/integration-libs/epd-visualization/assets/translations/es/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import epdVisualization from './epdVisualization.json'; +export const es = { + epdVisualization, +}; diff --git a/integration-libs/epd-visualization/assets/translations/es_CO/index.ts b/integration-libs/epd-visualization/assets/translations/es_CO/index.ts new file mode 100644 index 00000000000..8f97255fafe --- /dev/null +++ b/integration-libs/epd-visualization/assets/translations/es_CO/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import epdVisualization from './epdVisualization.json'; +export const es_CO = { + epdVisualization, +}; diff --git a/integration-libs/epd-visualization/assets/translations/fr/index.ts b/integration-libs/epd-visualization/assets/translations/fr/index.ts new file mode 100644 index 00000000000..a486f77e0fc --- /dev/null +++ b/integration-libs/epd-visualization/assets/translations/fr/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import epdVisualization from './epdVisualization.json'; +export const fr = { + epdVisualization, +}; diff --git a/integration-libs/epd-visualization/assets/translations/hi/index.ts b/integration-libs/epd-visualization/assets/translations/hi/index.ts new file mode 100644 index 00000000000..e7971cfc8d6 --- /dev/null +++ b/integration-libs/epd-visualization/assets/translations/hi/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import epdVisualization from './epdVisualization.json'; +export const hi = { + epdVisualization, +}; diff --git a/integration-libs/epd-visualization/assets/translations/hu/index.ts b/integration-libs/epd-visualization/assets/translations/hu/index.ts new file mode 100644 index 00000000000..04c8c365105 --- /dev/null +++ b/integration-libs/epd-visualization/assets/translations/hu/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import epdVisualization from './epdVisualization.json'; +export const hu = { + epdVisualization, +}; diff --git a/integration-libs/epd-visualization/assets/translations/id/index.ts b/integration-libs/epd-visualization/assets/translations/id/index.ts new file mode 100644 index 00000000000..fc50a419816 --- /dev/null +++ b/integration-libs/epd-visualization/assets/translations/id/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import epdVisualization from './epdVisualization.json'; +export const id = { + epdVisualization, +}; diff --git a/integration-libs/epd-visualization/assets/translations/it/index.ts b/integration-libs/epd-visualization/assets/translations/it/index.ts new file mode 100644 index 00000000000..b682edc13fc --- /dev/null +++ b/integration-libs/epd-visualization/assets/translations/it/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import epdVisualization from './epdVisualization.json'; +export const it = { + epdVisualization, +}; diff --git a/integration-libs/epd-visualization/assets/translations/ja/index.ts b/integration-libs/epd-visualization/assets/translations/ja/index.ts index 912b35a4a1a..41eb9c70b7a 100644 --- a/integration-libs/epd-visualization/assets/translations/ja/index.ts +++ b/integration-libs/epd-visualization/assets/translations/ja/index.ts @@ -5,7 +5,6 @@ */ import epdVisualization from './epdVisualization.json'; - export const ja = { epdVisualization, }; diff --git a/integration-libs/epd-visualization/assets/translations/ko/index.ts b/integration-libs/epd-visualization/assets/translations/ko/index.ts new file mode 100644 index 00000000000..f1f2e101117 --- /dev/null +++ b/integration-libs/epd-visualization/assets/translations/ko/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import epdVisualization from './epdVisualization.json'; +export const ko = { + epdVisualization, +}; diff --git a/integration-libs/epd-visualization/assets/translations/pl/index.ts b/integration-libs/epd-visualization/assets/translations/pl/index.ts new file mode 100644 index 00000000000..fcc240926f5 --- /dev/null +++ b/integration-libs/epd-visualization/assets/translations/pl/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import epdVisualization from './epdVisualization.json'; +export const pl = { + epdVisualization, +}; diff --git a/integration-libs/epd-visualization/assets/translations/pt/index.ts b/integration-libs/epd-visualization/assets/translations/pt/index.ts new file mode 100644 index 00000000000..fb973b7be54 --- /dev/null +++ b/integration-libs/epd-visualization/assets/translations/pt/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import epdVisualization from './epdVisualization.json'; +export const pt = { + epdVisualization, +}; diff --git a/integration-libs/epd-visualization/assets/translations/ru/index.ts b/integration-libs/epd-visualization/assets/translations/ru/index.ts new file mode 100644 index 00000000000..e833e9facb4 --- /dev/null +++ b/integration-libs/epd-visualization/assets/translations/ru/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import epdVisualization from './epdVisualization.json'; +export const ru = { + epdVisualization, +}; diff --git a/integration-libs/epd-visualization/assets/translations/translations.ts b/integration-libs/epd-visualization/assets/translations/translations.ts index eed0c61ec0f..95aa7ee3491 100644 --- a/integration-libs/epd-visualization/assets/translations/translations.ts +++ b/integration-libs/epd-visualization/assets/translations/translations.ts @@ -4,20 +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 epdVisualizationTranslations: TranslationResources = { +/** + * @deprecated use **specific language** translations (suffixed with language code) instead, + * like in the following example: + * ```diff + * i18n: { + * - resources: epdVisualizationTranslations + * + resources: { en: epdVisualizationTranslationsEn } + * } + * ``` + */ +export const epdVisualizationTranslations = { en, - ja, - de, - zh, }; -export const epdVisualizationTranslationChunksConfig: TranslationChunksConfig = - { - epdVisualization: ['epdVisualization'], - }; +export { cs as epdVisualizationTranslationsCs } from './cs/index'; +export { de as epdVisualizationTranslationsDe } from './de/index'; +export { en as epdVisualizationTranslationsEn } from './en/index'; +export { es as epdVisualizationTranslationsEs } from './es/index'; +export { es_CO as epdVisualizationTranslationsEs_CO } from './es_CO/index'; +export { fr as epdVisualizationTranslationsFr } from './fr/index'; +export { hi as epdVisualizationTranslationsHi } from './hi/index'; +export { hu as epdVisualizationTranslationsHu } from './hu/index'; +export { id as epdVisualizationTranslationsId } from './id/index'; +export { it as epdVisualizationTranslationsIt } from './it/index'; +export { ja as epdVisualizationTranslationsJa } from './ja/index'; +export { ko as epdVisualizationTranslationsKo } from './ko/index'; +export { pl as epdVisualizationTranslationsPl } from './pl/index'; +export { pt as epdVisualizationTranslationsPt } from './pt/index'; +export { ru as epdVisualizationTranslationsRu } from './ru/index'; +export { zh as epdVisualizationTranslationsZh } from './zh/index'; +export { zh_TW as epdVisualizationTranslationsZh_TW } from './zh_TW/index'; diff --git a/integration-libs/epd-visualization/assets/translations/zh/index.ts b/integration-libs/epd-visualization/assets/translations/zh/index.ts index 9b57613265a..49c47ed2aa1 100644 --- a/integration-libs/epd-visualization/assets/translations/zh/index.ts +++ b/integration-libs/epd-visualization/assets/translations/zh/index.ts @@ -5,7 +5,6 @@ */ import epdVisualization from './epdVisualization.json'; - export const zh = { epdVisualization, }; diff --git a/integration-libs/epd-visualization/assets/translations/zh_TW/index.ts b/integration-libs/epd-visualization/assets/translations/zh_TW/index.ts new file mode 100644 index 00000000000..bfecf565de0 --- /dev/null +++ b/integration-libs/epd-visualization/assets/translations/zh_TW/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import epdVisualization from './epdVisualization.json'; +export const zh_TW = { + epdVisualization, +}; diff --git a/integration-libs/opf/checkout/assets/translations/en/index.ts b/integration-libs/opf/checkout/assets/translations/en/index.ts index 948e6e6a811..0a3f84528b3 100644 --- a/integration-libs/opf/checkout/assets/translations/en/index.ts +++ b/integration-libs/opf/checkout/assets/translations/en/index.ts @@ -5,7 +5,6 @@ */ import opfCheckout from './opfCheckout.json'; - export const en = { opfCheckout, }; diff --git a/integration-libs/opf/checkout/assets/translations/translations.ts b/integration-libs/opf/checkout/assets/translations/translations.ts index 64566913c34..95a95ef43ad 100644 --- a/integration-libs/opf/checkout/assets/translations/translations.ts +++ b/integration-libs/opf/checkout/assets/translations/translations.ts @@ -4,13 +4,20 @@ * SPDX-License-Identifier: Apache-2.0 */ -import { TranslationChunksConfig, TranslationResources } from '@spartacus/core'; import { en } from './en/index'; -export const opfCheckoutTranslations: TranslationResources = { +/** + * @deprecated use **specific language** translations (suffixed with language code) instead, + * like in the following example: + * ```diff + * i18n: { + * - resources: opfCheckoutTranslations + * + resources: { en: opfCheckoutTranslationsEn } + * } + * ``` + */ +export const opfCheckoutTranslations = { en, }; -export const opfCheckoutTranslationChunksConfig: TranslationChunksConfig = { - opfCheckout: ['opfCheckout'], -}; +export { en as opfCheckoutTranslationsEn } from './en/index'; diff --git a/integration-libs/opf/payment/assets/translations/en/index.ts b/integration-libs/opf/payment/assets/translations/en/index.ts index d246d5baaf6..06b6ae0fac5 100644 --- a/integration-libs/opf/payment/assets/translations/en/index.ts +++ b/integration-libs/opf/payment/assets/translations/en/index.ts @@ -5,7 +5,6 @@ */ import opfPayment from './opfPayment.json'; - export const en = { opfPayment, }; diff --git a/integration-libs/opf/payment/assets/translations/translations.ts b/integration-libs/opf/payment/assets/translations/translations.ts index add198ef94d..eacdb22e9a2 100644 --- a/integration-libs/opf/payment/assets/translations/translations.ts +++ b/integration-libs/opf/payment/assets/translations/translations.ts @@ -4,13 +4,20 @@ * SPDX-License-Identifier: Apache-2.0 */ -import { TranslationChunksConfig, TranslationResources } from '@spartacus/core'; import { en } from './en/index'; -export const opfPaymentTranslations: TranslationResources = { +/** + * @deprecated use **specific language** translations (suffixed with language code) instead, + * like in the following example: + * ```diff + * i18n: { + * - resources: opfPaymentTranslations + * + resources: { en: opfPaymentTranslationsEn } + * } + * ``` + */ +export const opfPaymentTranslations = { en, }; -export const opfPaymentTranslationChunksConfig: TranslationChunksConfig = { - opfPayment: ['opfPayment'], -}; +export { en as opfPaymentTranslationsEn } from './en/index'; diff --git a/integration-libs/s4-service/assets/translations/cs/index.ts b/integration-libs/s4-service/assets/translations/cs/index.ts new file mode 100644 index 00000000000..95f528d88cd --- /dev/null +++ b/integration-libs/s4-service/assets/translations/cs/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import s4Service from './s4-service.json'; +export const cs = { + s4Service, +}; diff --git a/integration-libs/s4-service/assets/translations/de/index.ts b/integration-libs/s4-service/assets/translations/de/index.ts index e94e7ecbe33..8b7616ac9cf 100644 --- a/integration-libs/s4-service/assets/translations/de/index.ts +++ b/integration-libs/s4-service/assets/translations/de/index.ts @@ -5,7 +5,6 @@ */ import s4Service from './s4-service.json'; - export const de = { s4Service, }; diff --git a/integration-libs/s4-service/assets/translations/en/index.ts b/integration-libs/s4-service/assets/translations/en/index.ts index c58430e3133..fea46128ea7 100644 --- a/integration-libs/s4-service/assets/translations/en/index.ts +++ b/integration-libs/s4-service/assets/translations/en/index.ts @@ -5,7 +5,6 @@ */ import s4Service from './s4-service.json'; - export const en = { s4Service, }; diff --git a/integration-libs/s4-service/assets/translations/es/index.ts b/integration-libs/s4-service/assets/translations/es/index.ts new file mode 100644 index 00000000000..db020c87b8f --- /dev/null +++ b/integration-libs/s4-service/assets/translations/es/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import s4Service from './s4-service.json'; +export const es = { + s4Service, +}; diff --git a/integration-libs/s4-service/assets/translations/es_CO/index.ts b/integration-libs/s4-service/assets/translations/es_CO/index.ts new file mode 100644 index 00000000000..8890341abb2 --- /dev/null +++ b/integration-libs/s4-service/assets/translations/es_CO/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import s4Service from './s4-service.json'; +export const es_CO = { + s4Service, +}; diff --git a/integration-libs/s4-service/assets/translations/fr/index.ts b/integration-libs/s4-service/assets/translations/fr/index.ts new file mode 100644 index 00000000000..8ca6be65d8e --- /dev/null +++ b/integration-libs/s4-service/assets/translations/fr/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import s4Service from './s4-service.json'; +export const fr = { + s4Service, +}; diff --git a/integration-libs/s4-service/assets/translations/hi/index.ts b/integration-libs/s4-service/assets/translations/hi/index.ts new file mode 100644 index 00000000000..d14391e504c --- /dev/null +++ b/integration-libs/s4-service/assets/translations/hi/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import s4Service from './s4-service.json'; +export const hi = { + s4Service, +}; diff --git a/integration-libs/s4-service/assets/translations/hu/index.ts b/integration-libs/s4-service/assets/translations/hu/index.ts new file mode 100644 index 00000000000..a07fa9e2a91 --- /dev/null +++ b/integration-libs/s4-service/assets/translations/hu/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import s4Service from './s4-service.json'; +export const hu = { + s4Service, +}; diff --git a/integration-libs/s4-service/assets/translations/id/index.ts b/integration-libs/s4-service/assets/translations/id/index.ts new file mode 100644 index 00000000000..f0932c6fa8e --- /dev/null +++ b/integration-libs/s4-service/assets/translations/id/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import s4Service from './s4-service.json'; +export const id = { + s4Service, +}; diff --git a/integration-libs/s4-service/assets/translations/it/index.ts b/integration-libs/s4-service/assets/translations/it/index.ts new file mode 100644 index 00000000000..2d2caac1d16 --- /dev/null +++ b/integration-libs/s4-service/assets/translations/it/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import s4Service from './s4-service.json'; +export const it = { + s4Service, +}; diff --git a/integration-libs/s4-service/assets/translations/ja/index.ts b/integration-libs/s4-service/assets/translations/ja/index.ts index 8ed2f3ad9b1..2c7958cc854 100644 --- a/integration-libs/s4-service/assets/translations/ja/index.ts +++ b/integration-libs/s4-service/assets/translations/ja/index.ts @@ -5,7 +5,6 @@ */ import s4Service from './s4-service.json'; - export const ja = { s4Service, }; diff --git a/integration-libs/s4-service/assets/translations/ko/index.ts b/integration-libs/s4-service/assets/translations/ko/index.ts new file mode 100644 index 00000000000..55bdcdfaddc --- /dev/null +++ b/integration-libs/s4-service/assets/translations/ko/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import s4Service from './s4-service.json'; +export const ko = { + s4Service, +}; diff --git a/integration-libs/s4-service/assets/translations/pl/index.ts b/integration-libs/s4-service/assets/translations/pl/index.ts new file mode 100644 index 00000000000..8de328fb270 --- /dev/null +++ b/integration-libs/s4-service/assets/translations/pl/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import s4Service from './s4-service.json'; +export const pl = { + s4Service, +}; diff --git a/integration-libs/s4-service/assets/translations/pt/index.ts b/integration-libs/s4-service/assets/translations/pt/index.ts new file mode 100644 index 00000000000..141d67fa772 --- /dev/null +++ b/integration-libs/s4-service/assets/translations/pt/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import s4Service from './s4-service.json'; +export const pt = { + s4Service, +}; diff --git a/integration-libs/s4-service/assets/translations/ru/index.ts b/integration-libs/s4-service/assets/translations/ru/index.ts new file mode 100644 index 00000000000..665f9dba4e2 --- /dev/null +++ b/integration-libs/s4-service/assets/translations/ru/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import s4Service from './s4-service.json'; +export const ru = { + s4Service, +}; diff --git a/integration-libs/s4-service/assets/translations/translations.ts b/integration-libs/s4-service/assets/translations/translations.ts index 94c93b69cc4..4bf86f0a0fb 100644 --- a/integration-libs/s4-service/assets/translations/translations.ts +++ b/integration-libs/s4-service/assets/translations/translations.ts @@ -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 s4ServiceTranslations: TranslationResources = { +/** + * @deprecated use **specific language** translations (suffixed with language code) instead, + * like in the following example: + * ```diff + * i18n: { + * - resources: s4ServiceTranslations + * + resources: { en: s4ServiceTranslationsEn } + * } + * ``` + */ +export const s4ServiceTranslations = { en, - ja, - de, - zh, }; -export const s4ServiceTranslationChunksConfig: TranslationChunksConfig = { - s4Service: ['serviceOrderCheckout', 'rescheduleService', 'cancelService'], -}; +export { cs as s4ServiceTranslationsCs } from './cs/index'; +export { de as s4ServiceTranslationsDe } from './de/index'; +export { en as s4ServiceTranslationsEn } from './en/index'; +export { es as s4ServiceTranslationsEs } from './es/index'; +export { es_CO as s4ServiceTranslationsEs_CO } from './es_CO/index'; +export { fr as s4ServiceTranslationsFr } from './fr/index'; +export { hi as s4ServiceTranslationsHi } from './hi/index'; +export { hu as s4ServiceTranslationsHu } from './hu/index'; +export { id as s4ServiceTranslationsId } from './id/index'; +export { it as s4ServiceTranslationsIt } from './it/index'; +export { ja as s4ServiceTranslationsJa } from './ja/index'; +export { ko as s4ServiceTranslationsKo } from './ko/index'; +export { pl as s4ServiceTranslationsPl } from './pl/index'; +export { pt as s4ServiceTranslationsPt } from './pt/index'; +export { ru as s4ServiceTranslationsRu } from './ru/index'; +export { zh as s4ServiceTranslationsZh } from './zh/index'; +export { zh_TW as s4ServiceTranslationsZh_TW } from './zh_TW/index'; diff --git a/integration-libs/s4-service/assets/translations/zh/index.ts b/integration-libs/s4-service/assets/translations/zh/index.ts index 0894a512386..3347bc85540 100644 --- a/integration-libs/s4-service/assets/translations/zh/index.ts +++ b/integration-libs/s4-service/assets/translations/zh/index.ts @@ -5,7 +5,6 @@ */ import s4Service from './s4-service.json'; - export const zh = { s4Service, }; diff --git a/integration-libs/s4-service/assets/translations/zh_TW/index.ts b/integration-libs/s4-service/assets/translations/zh_TW/index.ts new file mode 100644 index 00000000000..c0fcf344ace --- /dev/null +++ b/integration-libs/s4-service/assets/translations/zh_TW/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import s4Service from './s4-service.json'; +export const zh_TW = { + s4Service, +}; diff --git a/integration-libs/s4om/assets/translations/cs/index.ts b/integration-libs/s4om/assets/translations/cs/index.ts new file mode 100644 index 00000000000..1e732752fe2 --- /dev/null +++ b/integration-libs/s4om/assets/translations/cs/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import s4omScheduleLines from './s4omScheduleLines.json'; +export const cs = { + s4omScheduleLines, +}; diff --git a/integration-libs/s4om/assets/translations/de/index.ts b/integration-libs/s4om/assets/translations/de/index.ts index d3305a8ce9c..56ab1f2867e 100644 --- a/integration-libs/s4om/assets/translations/de/index.ts +++ b/integration-libs/s4om/assets/translations/de/index.ts @@ -5,7 +5,6 @@ */ import s4omScheduleLines from './s4omScheduleLines.json'; - export const de = { s4omScheduleLines, }; diff --git a/integration-libs/s4om/assets/translations/en/index.ts b/integration-libs/s4om/assets/translations/en/index.ts index 2d3af45317c..9b70c8f5bba 100644 --- a/integration-libs/s4om/assets/translations/en/index.ts +++ b/integration-libs/s4om/assets/translations/en/index.ts @@ -5,7 +5,6 @@ */ import s4omScheduleLines from './s4omScheduleLines.json'; - export const en = { s4omScheduleLines, }; diff --git a/integration-libs/s4om/assets/translations/es/index.ts b/integration-libs/s4om/assets/translations/es/index.ts new file mode 100644 index 00000000000..2fad779ed44 --- /dev/null +++ b/integration-libs/s4om/assets/translations/es/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import s4omScheduleLines from './s4omScheduleLines.json'; +export const es = { + s4omScheduleLines, +}; diff --git a/integration-libs/s4om/assets/translations/es_CO/index.ts b/integration-libs/s4om/assets/translations/es_CO/index.ts new file mode 100644 index 00000000000..78df5a6a96b --- /dev/null +++ b/integration-libs/s4om/assets/translations/es_CO/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import s4omScheduleLines from './s4omScheduleLines.json'; +export const es_CO = { + s4omScheduleLines, +}; diff --git a/integration-libs/s4om/assets/translations/fr/index.ts b/integration-libs/s4om/assets/translations/fr/index.ts new file mode 100644 index 00000000000..00df8a87ed9 --- /dev/null +++ b/integration-libs/s4om/assets/translations/fr/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import s4omScheduleLines from './s4omScheduleLines.json'; +export const fr = { + s4omScheduleLines, +}; diff --git a/integration-libs/s4om/assets/translations/hi/index.ts b/integration-libs/s4om/assets/translations/hi/index.ts new file mode 100644 index 00000000000..224c22a2fbc --- /dev/null +++ b/integration-libs/s4om/assets/translations/hi/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import s4omScheduleLines from './s4omScheduleLines.json'; +export const hi = { + s4omScheduleLines, +}; diff --git a/integration-libs/s4om/assets/translations/hu/index.ts b/integration-libs/s4om/assets/translations/hu/index.ts new file mode 100644 index 00000000000..935390b16af --- /dev/null +++ b/integration-libs/s4om/assets/translations/hu/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import s4omScheduleLines from './s4omScheduleLines.json'; +export const hu = { + s4omScheduleLines, +}; diff --git a/integration-libs/s4om/assets/translations/id/index.ts b/integration-libs/s4om/assets/translations/id/index.ts new file mode 100644 index 00000000000..dcf733d3b8b --- /dev/null +++ b/integration-libs/s4om/assets/translations/id/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import s4omScheduleLines from './s4omScheduleLines.json'; +export const id = { + s4omScheduleLines, +}; diff --git a/integration-libs/s4om/assets/translations/it/index.ts b/integration-libs/s4om/assets/translations/it/index.ts new file mode 100644 index 00000000000..5c9f5430df4 --- /dev/null +++ b/integration-libs/s4om/assets/translations/it/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import s4omScheduleLines from './s4omScheduleLines.json'; +export const it = { + s4omScheduleLines, +}; diff --git a/integration-libs/s4om/assets/translations/ja/index.ts b/integration-libs/s4om/assets/translations/ja/index.ts index df44a7d0c96..687ed1bc442 100644 --- a/integration-libs/s4om/assets/translations/ja/index.ts +++ b/integration-libs/s4om/assets/translations/ja/index.ts @@ -5,7 +5,6 @@ */ import s4omScheduleLines from './s4omScheduleLines.json'; - export const ja = { s4omScheduleLines, }; diff --git a/integration-libs/s4om/assets/translations/ko/index.ts b/integration-libs/s4om/assets/translations/ko/index.ts new file mode 100644 index 00000000000..087d08c24d4 --- /dev/null +++ b/integration-libs/s4om/assets/translations/ko/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import s4omScheduleLines from './s4omScheduleLines.json'; +export const ko = { + s4omScheduleLines, +}; diff --git a/integration-libs/s4om/assets/translations/pl/index.ts b/integration-libs/s4om/assets/translations/pl/index.ts new file mode 100644 index 00000000000..94061e6ba81 --- /dev/null +++ b/integration-libs/s4om/assets/translations/pl/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import s4omScheduleLines from './s4omScheduleLines.json'; +export const pl = { + s4omScheduleLines, +}; diff --git a/integration-libs/s4om/assets/translations/pt/index.ts b/integration-libs/s4om/assets/translations/pt/index.ts new file mode 100644 index 00000000000..004f6059cab --- /dev/null +++ b/integration-libs/s4om/assets/translations/pt/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import s4omScheduleLines from './s4omScheduleLines.json'; +export const pt = { + s4omScheduleLines, +}; diff --git a/integration-libs/s4om/assets/translations/ru/index.ts b/integration-libs/s4om/assets/translations/ru/index.ts new file mode 100644 index 00000000000..20c76812c08 --- /dev/null +++ b/integration-libs/s4om/assets/translations/ru/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import s4omScheduleLines from './s4omScheduleLines.json'; +export const ru = { + s4omScheduleLines, +}; diff --git a/integration-libs/s4om/assets/translations/translations.ts b/integration-libs/s4om/assets/translations/translations.ts index 64dd0712ea9..63cc17845ca 100644 --- a/integration-libs/s4om/assets/translations/translations.ts +++ b/integration-libs/s4om/assets/translations/translations.ts @@ -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 s4omTranslations: TranslationResources = { +/** + * @deprecated use **specific language** translations (suffixed with language code) instead, + * like in the following example: + * ```diff + * i18n: { + * - resources: s4omTranslations + * + resources: { en: s4omTranslationsEn } + * } + * ``` + */ +export const s4omTranslations = { en, - ja, - de, - zh, }; -export const s4omTranslationChunksConfig: TranslationChunksConfig = { - s4omScheduleLines: ['s4omScheduleLines'], -}; +export { cs as s4omTranslationsCs } from './cs/index'; +export { de as s4omTranslationsDe } from './de/index'; +export { en as s4omTranslationsEn } from './en/index'; +export { es as s4omTranslationsEs } from './es/index'; +export { es_CO as s4omTranslationsEs_CO } from './es_CO/index'; +export { fr as s4omTranslationsFr } from './fr/index'; +export { hi as s4omTranslationsHi } from './hi/index'; +export { hu as s4omTranslationsHu } from './hu/index'; +export { id as s4omTranslationsId } from './id/index'; +export { it as s4omTranslationsIt } from './it/index'; +export { ja as s4omTranslationsJa } from './ja/index'; +export { ko as s4omTranslationsKo } from './ko/index'; +export { pl as s4omTranslationsPl } from './pl/index'; +export { pt as s4omTranslationsPt } from './pt/index'; +export { ru as s4omTranslationsRu } from './ru/index'; +export { zh as s4omTranslationsZh } from './zh/index'; +export { zh_TW as s4omTranslationsZh_TW } from './zh_TW/index'; diff --git a/integration-libs/s4om/assets/translations/zh/index.ts b/integration-libs/s4om/assets/translations/zh/index.ts index 31286a56e2b..aad4f538412 100644 --- a/integration-libs/s4om/assets/translations/zh/index.ts +++ b/integration-libs/s4om/assets/translations/zh/index.ts @@ -5,7 +5,6 @@ */ import s4omScheduleLines from './s4omScheduleLines.json'; - export const zh = { s4omScheduleLines, }; diff --git a/integration-libs/s4om/assets/translations/zh_TW/index.ts b/integration-libs/s4om/assets/translations/zh_TW/index.ts new file mode 100644 index 00000000000..fc3e77dec99 --- /dev/null +++ b/integration-libs/s4om/assets/translations/zh_TW/index.ts @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import s4omScheduleLines from './s4omScheduleLines.json'; +export const zh_TW = { + s4omScheduleLines, +}; diff --git a/projects/assets/package.json b/projects/assets/package.json index ec687b0c10e..6ab8f1ee0bf 100644 --- a/projects/assets/package.json +++ b/projects/assets/package.json @@ -12,6 +12,7 @@ "dependencies": { "tslib": "^2.6.2" }, + "peerDependencies": {}, "publishConfig": { "access": "public" } diff --git a/projects/assets/src/translations/cs/index.ts b/projects/assets/src/translations/cs/index.ts new file mode 100644 index 00000000000..055cae11167 --- /dev/null +++ b/projects/assets/src/translations/cs/index.ts @@ -0,0 +1,33 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import myAccountV2NotifiationPerference from './my-account-v2-notification-perference.json'; +import myAccountV2Consent from './my-account-v2-consent.json'; +import common from './common.json'; +import deliveryMode from './deliveryMode.json'; +import myAccount from './myAccount.json'; +import payment from './payment.json'; +import pdf from './pdf.json'; +import product from './product.json'; +import pwa from './pwa.json'; +import user from './user.json'; +import video from './video.json'; +import siteThemeSwitcher from './site-theme-switcher.json'; + +export const cs = { + common, + myAccount, + payment, + product, + pwa, + user, + video, + pdf, + deliveryMode, + myAccountV2Consent, + myAccountV2NotifiationPerference, + siteThemeSwitcher, +}; diff --git a/projects/assets/src/translations/es/index.ts b/projects/assets/src/translations/es/index.ts new file mode 100644 index 00000000000..d46d5650473 --- /dev/null +++ b/projects/assets/src/translations/es/index.ts @@ -0,0 +1,33 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import myAccountV2NotifiationPerference from './my-account-v2-notification-perference.json'; +import myAccountV2Consent from './my-account-v2-consent.json'; +import common from './common.json'; +import deliveryMode from './deliveryMode.json'; +import myAccount from './myAccount.json'; +import payment from './payment.json'; +import pdf from './pdf.json'; +import product from './product.json'; +import pwa from './pwa.json'; +import user from './user.json'; +import video from './video.json'; +import siteThemeSwitcher from './site-theme-switcher.json'; + +export const es = { + common, + myAccount, + payment, + product, + pwa, + user, + video, + pdf, + deliveryMode, + myAccountV2Consent, + myAccountV2NotifiationPerference, + siteThemeSwitcher, +}; diff --git a/projects/assets/src/translations/es_CO/index.ts b/projects/assets/src/translations/es_CO/index.ts new file mode 100644 index 00000000000..3aba5526449 --- /dev/null +++ b/projects/assets/src/translations/es_CO/index.ts @@ -0,0 +1,33 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import myAccountV2NotifiationPerference from './my-account-v2-notification-perference.json'; +import myAccountV2Consent from './my-account-v2-consent.json'; +import common from './common.json'; +import deliveryMode from './deliveryMode.json'; +import myAccount from './myAccount.json'; +import payment from './payment.json'; +import pdf from './pdf.json'; +import product from './product.json'; +import pwa from './pwa.json'; +import user from './user.json'; +import video from './video.json'; +import siteThemeSwitcher from './site-theme-switcher.json'; + +export const es_CO = { + common, + myAccount, + payment, + product, + pwa, + user, + video, + pdf, + deliveryMode, + myAccountV2Consent, + myAccountV2NotifiationPerference, + siteThemeSwitcher, +}; diff --git a/projects/assets/src/translations/fr/index.ts b/projects/assets/src/translations/fr/index.ts new file mode 100644 index 00000000000..16cf74d6f9f --- /dev/null +++ b/projects/assets/src/translations/fr/index.ts @@ -0,0 +1,33 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import myAccountV2NotifiationPerference from './my-account-v2-notification-perference.json'; +import myAccountV2Consent from './my-account-v2-consent.json'; +import common from './common.json'; +import deliveryMode from './deliveryMode.json'; +import myAccount from './myAccount.json'; +import payment from './payment.json'; +import pdf from './pdf.json'; +import product from './product.json'; +import pwa from './pwa.json'; +import user from './user.json'; +import video from './video.json'; +import siteThemeSwitcher from './site-theme-switcher.json'; + +export const fr = { + common, + myAccount, + payment, + product, + pwa, + user, + video, + pdf, + deliveryMode, + myAccountV2Consent, + myAccountV2NotifiationPerference, + siteThemeSwitcher, +}; diff --git a/projects/assets/src/translations/hi/index.ts b/projects/assets/src/translations/hi/index.ts new file mode 100644 index 00000000000..8085c97c738 --- /dev/null +++ b/projects/assets/src/translations/hi/index.ts @@ -0,0 +1,33 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import myAccountV2NotifiationPerference from './my-account-v2-notification-perference.json'; +import myAccountV2Consent from './my-account-v2-consent.json'; +import common from './common.json'; +import deliveryMode from './deliveryMode.json'; +import myAccount from './myAccount.json'; +import payment from './payment.json'; +import pdf from './pdf.json'; +import product from './product.json'; +import pwa from './pwa.json'; +import user from './user.json'; +import video from './video.json'; +import siteThemeSwitcher from './site-theme-switcher.json'; + +export const hi = { + common, + myAccount, + payment, + product, + pwa, + user, + video, + pdf, + deliveryMode, + myAccountV2Consent, + myAccountV2NotifiationPerference, + siteThemeSwitcher, +}; diff --git a/projects/assets/src/translations/hu/index.ts b/projects/assets/src/translations/hu/index.ts new file mode 100644 index 00000000000..9135a6b90a5 --- /dev/null +++ b/projects/assets/src/translations/hu/index.ts @@ -0,0 +1,33 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import myAccountV2NotifiationPerference from './my-account-v2-notification-perference.json'; +import myAccountV2Consent from './my-account-v2-consent.json'; +import common from './common.json'; +import deliveryMode from './deliveryMode.json'; +import myAccount from './myAccount.json'; +import payment from './payment.json'; +import pdf from './pdf.json'; +import product from './product.json'; +import pwa from './pwa.json'; +import user from './user.json'; +import video from './video.json'; +import siteThemeSwitcher from './site-theme-switcher.json'; + +export const hu = { + common, + myAccount, + payment, + product, + pwa, + user, + video, + pdf, + deliveryMode, + myAccountV2Consent, + myAccountV2NotifiationPerference, + siteThemeSwitcher, +}; diff --git a/projects/assets/src/translations/id/index.ts b/projects/assets/src/translations/id/index.ts new file mode 100644 index 00000000000..f8fe97696ac --- /dev/null +++ b/projects/assets/src/translations/id/index.ts @@ -0,0 +1,33 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import myAccountV2NotifiationPerference from './my-account-v2-notification-perference.json'; +import myAccountV2Consent from './my-account-v2-consent.json'; +import common from './common.json'; +import deliveryMode from './deliveryMode.json'; +import myAccount from './myAccount.json'; +import payment from './payment.json'; +import pdf from './pdf.json'; +import product from './product.json'; +import pwa from './pwa.json'; +import user from './user.json'; +import video from './video.json'; +import siteThemeSwitcher from './site-theme-switcher.json'; + +export const id = { + common, + myAccount, + payment, + product, + pwa, + user, + video, + pdf, + deliveryMode, + myAccountV2Consent, + myAccountV2NotifiationPerference, + siteThemeSwitcher, +}; diff --git a/projects/assets/src/translations/it/index.ts b/projects/assets/src/translations/it/index.ts new file mode 100644 index 00000000000..e52da781ee8 --- /dev/null +++ b/projects/assets/src/translations/it/index.ts @@ -0,0 +1,33 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import myAccountV2NotifiationPerference from './my-account-v2-notification-perference.json'; +import myAccountV2Consent from './my-account-v2-consent.json'; +import common from './common.json'; +import deliveryMode from './deliveryMode.json'; +import myAccount from './myAccount.json'; +import payment from './payment.json'; +import pdf from './pdf.json'; +import product from './product.json'; +import pwa from './pwa.json'; +import user from './user.json'; +import video from './video.json'; +import siteThemeSwitcher from './site-theme-switcher.json'; + +export const it = { + common, + myAccount, + payment, + product, + pwa, + user, + video, + pdf, + deliveryMode, + myAccountV2Consent, + myAccountV2NotifiationPerference, + siteThemeSwitcher, +}; diff --git a/projects/assets/src/translations/ko/index.ts b/projects/assets/src/translations/ko/index.ts new file mode 100644 index 00000000000..677c2ea0307 --- /dev/null +++ b/projects/assets/src/translations/ko/index.ts @@ -0,0 +1,33 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import myAccountV2NotifiationPerference from './my-account-v2-notification-perference.json'; +import myAccountV2Consent from './my-account-v2-consent.json'; +import common from './common.json'; +import deliveryMode from './deliveryMode.json'; +import myAccount from './myAccount.json'; +import payment from './payment.json'; +import pdf from './pdf.json'; +import product from './product.json'; +import pwa from './pwa.json'; +import user from './user.json'; +import video from './video.json'; +import siteThemeSwitcher from './site-theme-switcher.json'; + +export const ko = { + common, + myAccount, + payment, + product, + pwa, + user, + video, + pdf, + deliveryMode, + myAccountV2Consent, + myAccountV2NotifiationPerference, + siteThemeSwitcher, +}; diff --git a/projects/assets/src/translations/pl/index.ts b/projects/assets/src/translations/pl/index.ts new file mode 100644 index 00000000000..d56975d235d --- /dev/null +++ b/projects/assets/src/translations/pl/index.ts @@ -0,0 +1,33 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import myAccountV2NotifiationPerference from './my-account-v2-notification-perference.json'; +import myAccountV2Consent from './my-account-v2-consent.json'; +import common from './common.json'; +import deliveryMode from './deliveryMode.json'; +import myAccount from './myAccount.json'; +import payment from './payment.json'; +import pdf from './pdf.json'; +import product from './product.json'; +import pwa from './pwa.json'; +import user from './user.json'; +import video from './video.json'; +import siteThemeSwitcher from './site-theme-switcher.json'; + +export const pl = { + common, + myAccount, + payment, + product, + pwa, + user, + video, + pdf, + deliveryMode, + myAccountV2Consent, + myAccountV2NotifiationPerference, + siteThemeSwitcher, +}; diff --git a/projects/assets/src/translations/pt/index.ts b/projects/assets/src/translations/pt/index.ts new file mode 100644 index 00000000000..e71ff6a324d --- /dev/null +++ b/projects/assets/src/translations/pt/index.ts @@ -0,0 +1,33 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import myAccountV2NotifiationPerference from './my-account-v2-notification-perference.json'; +import myAccountV2Consent from './my-account-v2-consent.json'; +import common from './common.json'; +import deliveryMode from './deliveryMode.json'; +import myAccount from './myAccount.json'; +import payment from './payment.json'; +import pdf from './pdf.json'; +import product from './product.json'; +import pwa from './pwa.json'; +import user from './user.json'; +import video from './video.json'; +import siteThemeSwitcher from './site-theme-switcher.json'; + +export const pt = { + common, + myAccount, + payment, + product, + pwa, + user, + video, + pdf, + deliveryMode, + myAccountV2Consent, + myAccountV2NotifiationPerference, + siteThemeSwitcher, +}; diff --git a/projects/assets/src/translations/ru/index.ts b/projects/assets/src/translations/ru/index.ts new file mode 100644 index 00000000000..d1d796b61fd --- /dev/null +++ b/projects/assets/src/translations/ru/index.ts @@ -0,0 +1,33 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import myAccountV2NotifiationPerference from './my-account-v2-notification-perference.json'; +import myAccountV2Consent from './my-account-v2-consent.json'; +import common from './common.json'; +import deliveryMode from './deliveryMode.json'; +import myAccount from './myAccount.json'; +import payment from './payment.json'; +import pdf from './pdf.json'; +import product from './product.json'; +import pwa from './pwa.json'; +import user from './user.json'; +import video from './video.json'; +import siteThemeSwitcher from './site-theme-switcher.json'; + +export const ru = { + common, + myAccount, + payment, + product, + pwa, + user, + video, + pdf, + deliveryMode, + myAccountV2Consent, + myAccountV2NotifiationPerference, + siteThemeSwitcher, +}; diff --git a/projects/assets/src/translations/translations-ts-generator.config b/projects/assets/src/translations/translations-ts-generator.config new file mode 100644 index 00000000000..8baf568ecab --- /dev/null +++ b/projects/assets/src/translations/translations-ts-generator.config @@ -0,0 +1 @@ +PUBLIC_API_PREFIX= \ No newline at end of file diff --git a/projects/assets/src/translations/translations.ts b/projects/assets/src/translations/translations.ts index f2b06549e7e..985b857389e 100644 --- a/projects/assets/src/translations/translations.ts +++ b/projects/assets/src/translations/translations.ts @@ -5,21 +5,35 @@ */ import { en } from './en/index'; -import { ja } from './ja/index'; -import { de } from './de/index'; -import { zh } from './zh/index'; -interface TranslationResources { - [lang: string]: { - [chunkName: string]: { - [key: string]: any; - }; - }; -} - -export const translations: TranslationResources = { +/** + * @deprecated use **specific language** translations (suffixed with language code) instead, + * like in the following example: + * ```diff + * i18n: { + * - resources: translations + * + resources: { en: translationsEn } + * } + * ``` + */ +export const translations = { en, - ja, - de, - zh, }; + +export { cs as translationsCs } from './cs/index'; +export { de as translationsDe } from './de/index'; +export { en as translationsEn } from './en/index'; +export { es as translationsEs } from './es/index'; +export { es_CO as translationsEs_CO } from './es_CO/index'; +export { fr as translationsFr } from './fr/index'; +export { hi as translationsHi } from './hi/index'; +export { hu as translationsHu } from './hu/index'; +export { id as translationsId } from './id/index'; +export { it as translationsIt } from './it/index'; +export { ja as translationsJa } from './ja/index'; +export { ko as translationsKo } from './ko/index'; +export { pl as translationsPl } from './pl/index'; +export { pt as translationsPt } from './pt/index'; +export { ru as translationsRu } from './ru/index'; +export { zh as translationsZh } from './zh/index'; +export { zh_TW as translationsZh_TW } from './zh_TW/index'; diff --git a/projects/assets/src/translations/zh_TW/index.ts b/projects/assets/src/translations/zh_TW/index.ts new file mode 100644 index 00000000000..65005b37a3c --- /dev/null +++ b/projects/assets/src/translations/zh_TW/index.ts @@ -0,0 +1,33 @@ +/* + * SPDX-FileCopyrightText: 2024 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import myAccountV2NotifiationPerference from './my-account-v2-notification-perference.json'; +import myAccountV2Consent from './my-account-v2-consent.json'; +import common from './common.json'; +import deliveryMode from './deliveryMode.json'; +import myAccount from './myAccount.json'; +import payment from './payment.json'; +import pdf from './pdf.json'; +import product from './product.json'; +import pwa from './pwa.json'; +import user from './user.json'; +import video from './video.json'; +import siteThemeSwitcher from './site-theme-switcher.json'; + +export const zh_TW = { + common, + myAccount, + payment, + product, + pwa, + user, + video, + pdf, + deliveryMode, + myAccountV2Consent, + myAccountV2NotifiationPerference, + siteThemeSwitcher, +}; diff --git a/projects/core/src/i18n/get-translation-chunks-config.spec.ts b/projects/core/src/i18n/get-translation-chunks-config.spec.ts new file mode 100644 index 00000000000..968c0b43be2 --- /dev/null +++ b/projects/core/src/i18n/get-translation-chunks-config.spec.ts @@ -0,0 +1,69 @@ +import { getTranslationChunksConfig } from './get-translation-chunks-config'; + +describe('getTranslationChunksConfig', () => { + it('should transform translation object into chunks config', () => { + const translationsEn = { + common: { + greetings: { + hello: 'Hello', + welcome: 'Welcome', + }, + errors: { + notFound: 'Not found', + }, + }, + auth: { + userActions: { + login: 'Login', + register: 'Register', + }, + account: { + close: 'Close', + }, + }, + }; + + const result = getTranslationChunksConfig(translationsEn); + + expect(result).toEqual({ + common: ['greetings', 'errors'], + auth: ['userActions', 'account'], + }); + }); + + it('should handle empty translation object', () => { + const translations = {}; + + const result = getTranslationChunksConfig(translations); + + expect(result).toEqual({}); + }); + + it('should handle chunks that contain just 1 key', () => { + const translations = { + common: { hello: 'Hello' }, + auth: { login: 'Login' }, + }; + + const result = getTranslationChunksConfig(translations); + + expect(result).toEqual({ + common: ['hello'], + auth: ['login'], + }); + }); + + it('should return empty array for a chunk without keys (edge case)', () => { + const translations = { + emptyChunk: {}, + nonEmptyChunk: { key: 'value' }, + }; + + const result = getTranslationChunksConfig(translations); + + expect(result).toEqual({ + emptyChunk: [], + nonEmptyChunk: ['key'], + }); + }); +}); diff --git a/projects/core/src/i18n/get-translation-chunks-config.ts b/projects/core/src/i18n/get-translation-chunks-config.ts new file mode 100644 index 00000000000..6d5a58b2737 --- /dev/null +++ b/projects/core/src/i18n/get-translation-chunks-config.ts @@ -0,0 +1,56 @@ +type TranslationKeys = { + [K in keyof T]: string[]; +}; + +/** + * It extracts information about the primary keys in the various chunks of the given translations object. + * + * In other words, given the translations object for a single language, + * it returns an object with the keys as the chunk names, + * and the values as the array of primary keys in that chunk. + * + * @example For example, it will return the following object: + * ```ts + * { + * common: ['errors', 'pageMetaResolvers', ...], + * myAccount: ['closeAccount', 'updatePasswordForm', ...], + * ... + * } + * ``` + * + * ...when passing the following translations object as an argument: + * ```ts + * import common from './common.json'; + * import myAccount from './myAccount.json'; + * + * export const en = { + * common, + * myAccount, + * ... + * } + * ``` + * Where the JSON files are: + * ```ts + * // common.json + * { + * "errors": { ... }, + * "pageMetaResolvers": { ... }, + * ... + * } + * ``` + * + * ```ts + * // myAccount.json + * { + * "closeAccount": { ... }, + * "updatePasswordForm": { ... }, + * ... + * } + * ``` + */ +export const getTranslationChunksConfig = >( + translations: T +): TranslationKeys => + Object.fromEntries( + Object.entries(translations).map(([key, obj]) => [key, Object.keys(obj)]) + ) as TranslationKeys; diff --git a/scripts/generate-translations-ts.ts b/scripts/generate-translations-ts.ts index 3cb01e286a0..ca3afe85315 100644 --- a/scripts/generate-translations-ts.ts +++ b/scripts/generate-translations-ts.ts @@ -51,13 +51,18 @@ function getLicenseHeader(): string { function getPrefix(translationDir: string): string | undefined { const configPath = path.join( - path.dirname(translationDir), + translationDir, 'translations-ts-generator.config' ); if (fs.existsSync(configPath)) { const content = fs.readFileSync(configPath, 'utf-8'); const match = content.match(/PUBLIC_API_PREFIX=(.+)/); return match ? match[1].trim() : undefined; + } else { + // SPIKE TODO REMOVE + throw new Error( + `No translations-ts-generator.config file found in ${translationDir}` + ); } return undefined; } @@ -67,6 +72,9 @@ function generateLanguageIndex( translationFiles: TranslationFile[], modifiedFiles: ModifiedFiles ): void { + // SPIKE TODO REMOVE - TEMPORARILY WE DONT WANT TO USE THIS FUNCTION + return; + const imports = translationFiles .map((file) => `import ${file.name} from '${file.importPath}';`) .join('\n'); @@ -87,6 +95,7 @@ function generateMainTranslations( modifiedFiles: ModifiedFiles ): void { const prefix = getPrefix(translationDir); + const languageExports = languages .map((lang) => { const capitalizedLang = lang.charAt(0).toUpperCase() + lang.slice(1); @@ -97,10 +106,29 @@ function generateMainTranslations( }) .join('\n'); + const deprecatedExportName = prefix + ? `${prefix}Translations` + : 'translations'; + const deprecatedExport = `import { en } from './en/index'; + +/** + * @deprecated use **specific language** translations (suffixed with language code) instead, + * like in the following example: + * \`\`\`diff + * i18n: { + * - resources: ${deprecatedExportName} + * + resources: { en: ${deprecatedExportName}En } + * } + * \`\`\` + */ +export const ${deprecatedExportName} = { + en, +};`; + const translationsPath = path.join(translationDir, 'translations.ts'); fs.writeFileSync( translationsPath, - getLicenseHeader() + languageExports + '\n' + getLicenseHeader() + deprecatedExport + '\n\n' + languageExports + '\n' ); modifiedFiles.translationFiles.add(translationsPath); } @@ -170,6 +198,11 @@ async function main(): Promise { } catch (error) { console.error('Error running prettier:', error); } + + // SPIKE TODO REMOVE: + console.log( + 'SPIKE TODO ADD RUNNING PRETTIER - but only on the changed files' + ); } }