Translations cleaning / workflows (#10125)

This commit is contained in:
Félix Malfait
2025-02-11 15:26:21 +01:00
committed by GitHub
parent 6da9976193
commit cc68deaab1
63 changed files with 376 additions and 164 deletions

View File

@ -1,14 +0,0 @@
export const APP_LOCALES = {
en: 'en',
'fr-FR': 'fr-FR',
'de-DE': 'de-DE',
'it-IT': 'it-IT',
'es-ES': 'es-ES',
'ko-KR': 'ko-KR',
'ja-JP': 'ja-JP',
'pt-PT': 'pt-PT',
'pt-BR': 'pt-BR',
'zh-CN': 'zh-CN',
'zh-TW': 'zh-TW',
'pseudo-en': 'pseudo-en',
} as const;

View File

@ -1,5 +1,5 @@
export * from './FieldForTotalCountAggregateOperation';
export * from './Locales';
export * from './SettingsFeatures';
export * from './TwentyCompaniesBaseUrl';
export * from './TwentyIconsBaseUrl';
export * from './SettingsFeatures';

View File

@ -0,0 +1,35 @@
import { SOURCE_LOCALE } from 'src/i18n/constants/SourceLocale';
export const APP_LOCALES = {
[SOURCE_LOCALE]: SOURCE_LOCALE,
'pseudo-en': 'pseudo-en',
'af-ZA': 'af-ZA',
'ar-SA': 'ar-SA',
'ca-ES': 'ca-ES',
'cs-CZ': 'cs-CZ',
'da-DK': 'da-DK',
'de-DE': 'de-DE',
'el-GR': 'el-GR',
'es-ES': 'es-ES',
'fi-FI': 'fi-FI',
'fr-FR': 'fr-FR',
'he-IL': 'he-IL',
'hu-HU': 'hu-HU',
'it-IT': 'it-IT',
'ja-JP': 'ja-JP',
'ko-KR': 'ko-KR',
'nl-NL': 'nl-NL',
'no-NO': 'no-NO',
'pl-PL': 'pl-PL',
'pt-BR': 'pt-BR',
'pt-PT': 'pt-PT',
'ro-RO': 'ro-RO',
'ru-RU': 'ru-RU',
'sr-Cyrl': 'sr-Cyrl',
'sv-SE': 'sv-SE',
'tr-TR': 'tr-TR',
'uk-UA': 'uk-UA',
'vi-VN': 'vi-VN',
'zh-CN': 'zh-CN',
'zh-TW': 'zh-TW',
} as const;

View File

@ -0,0 +1 @@
export const SOURCE_LOCALE = 'en';

View File

@ -0,0 +1,3 @@
export * from './constants/AppLocales';
export * from './constants/SourceLocale';

View File

@ -1,4 +1,6 @@
export * from './constants';
export * from './i18n';
export * from './types';
export * from './utils';
export * from './workspace';

View File

@ -1,4 +1,4 @@
import { APP_LOCALES } from 'src/constants/Locales';
import { APP_LOCALES } from 'src/i18n/constants/AppLocales';
export const isValidLocale = (
value: string | null,