Translations cleaning / workflows (#10125)
This commit is contained in:
@ -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;
|
||||
@ -1,5 +1,5 @@
|
||||
export * from './FieldForTotalCountAggregateOperation';
|
||||
export * from './Locales';
|
||||
export * from './SettingsFeatures';
|
||||
export * from './TwentyCompaniesBaseUrl';
|
||||
export * from './TwentyIconsBaseUrl';
|
||||
export * from './SettingsFeatures';
|
||||
|
||||
|
||||
35
packages/twenty-shared/src/i18n/constants/AppLocales.ts
Normal file
35
packages/twenty-shared/src/i18n/constants/AppLocales.ts
Normal 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;
|
||||
@ -0,0 +1 @@
|
||||
export const SOURCE_LOCALE = 'en';
|
||||
3
packages/twenty-shared/src/i18n/index.ts
Normal file
3
packages/twenty-shared/src/i18n/index.ts
Normal file
@ -0,0 +1,3 @@
|
||||
export * from './constants/AppLocales';
|
||||
export * from './constants/SourceLocale';
|
||||
|
||||
@ -1,4 +1,6 @@
|
||||
export * from './constants';
|
||||
export * from './i18n';
|
||||
export * from './types';
|
||||
export * from './utils';
|
||||
export * from './workspace';
|
||||
|
||||
|
||||
@ -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,
|
||||
|
||||
Reference in New Issue
Block a user