콘텐츠로 이동

virtuals/i18n/v-files

이 콘텐츠는 아직 번역되지 않았습니다.

const availableTranslationFileKeys: any;

Defined in: studiocms/packages/studiocms/src/virtuals/i18n/v-files.ts:49^

An array of translation file keys derived from availableTranslationFiles. Each key is generated by removing the .json extension from the file name. Falsy values are filtered out from the resulting array.

// If availableTranslationFiles = ['en.json', 'fr.json']
// availableTranslationFileKeys = ['en', 'fr']

const availableTranslations: ServerUiTranslations;

Defined in: studiocms/packages/studiocms/src/virtuals/i18n/v-files.ts:104^

Loads and returns the available server-side UI translations, excluding English (‘en’). For each translation file key, reads the corresponding JSON file, checks its string values, and includes it in the results only if it passes the threshold check. Skips translation files with too many empty strings and logs a warning.

An object mapping language keys to their translation records.