Add logged out translations (#9983)
Add translation for logged in / sub pages
This commit is contained in:
@ -8,5 +8,6 @@ export * from './types/FieldMetadataType';
|
||||
export * from './utils/fieldMetadata/isFieldMetadataDateKind';
|
||||
export * from './utils/image/getImageAbsoluteURI';
|
||||
export * from './utils/isDefined';
|
||||
export * from './utils/isValidLocale';
|
||||
export * from './utils/strings';
|
||||
export * from './workspace';
|
||||
|
||||
5
packages/twenty-shared/src/utils/isValidLocale.ts
Normal file
5
packages/twenty-shared/src/utils/isValidLocale.ts
Normal file
@ -0,0 +1,5 @@
|
||||
import { APP_LOCALES } from 'src/constants/Locales';
|
||||
|
||||
export const isValidLocale = (
|
||||
value: string | null,
|
||||
): value is keyof typeof APP_LOCALES => value !== null && value in APP_LOCALES;
|
||||
Reference in New Issue
Block a user