@payloadcms/translations
Advanced tools
Comparing version 3.0.0-alpha.68 to 3.0.0-alpha.69
@@ -24,2 +24,3 @@ import { ar } from '../languages/ar.js'; | ||
import { ru } from '../languages/ru.js'; | ||
import { sk } from '../languages/sk.js'; | ||
import { sv } from '../languages/sv.js'; | ||
@@ -56,2 +57,3 @@ import { th } from '../languages/th.js'; | ||
ru, | ||
sk, | ||
sv, | ||
@@ -58,0 +60,0 @@ th, |
@@ -64,2 +64,5 @@ export const importDateFNSLocale = async (locale) => { | ||
break; | ||
case 'sk': | ||
result = await import('date-fns/locale/sk'); | ||
break; | ||
case 'sv': | ||
@@ -66,0 +69,0 @@ result = await import('date-fns/locale/sv'); |
import type { Locale } from 'date-fns'; | ||
import type { acceptedLanguages } from './utilities/languages.js'; | ||
type DateFNSKeys = 'ar' | 'az' | 'bg' | 'cs' | 'de' | 'en-US' | 'es' | 'fa-IR' | 'fr' | 'hr' | 'hu' | 'it' | 'ja' | 'ko' | 'nb' | 'nl' | 'pl' | 'pt' | 'ro' | 'ru' | 'sv' | 'th' | 'tr' | 'uk' | 'vi' | 'zh-CN' | 'zh-TW'; | ||
type DateFNSKeys = 'ar' | 'az' | 'bg' | 'cs' | 'de' | 'en-US' | 'es' | 'fa-IR' | 'fr' | 'hr' | 'hu' | 'it' | 'ja' | 'ko' | 'nb' | 'nl' | 'pl' | 'pt' | 'ro' | 'ru' | 'sk' | 'sv' | 'th' | 'tr' | 'uk' | 'vi' | 'zh-CN' | 'zh-TW'; | ||
export type Language = { | ||
@@ -5,0 +5,0 @@ dateFNSKey: DateFNSKeys; |
import type { AcceptedLanguages } from '../types.js'; | ||
export declare const rtlLanguages: readonly ["ar", "fa"]; | ||
export declare const acceptedLanguages: readonly ["ar", "az", "bg", "cs", "de", "en", "es", "fa", "fr", "hr", "hu", "it", "ja", "ko", "my", "nb", "nl", "pl", "pt", "ro", "rs", "rsLatin", "ru", "sv", "th", "tr", "uk", "vi", "zh", "zh-TW"]; | ||
export declare const acceptedLanguages: readonly ["ar", "az", "bg", "cs", "de", "en", "es", "fa", "fr", "hr", "hu", "it", "ja", "ko", "my", "nb", "nl", "pl", "pt", "ro", "rs", "rsLatin", "ru", "sk", "sv", "th", "tr", "uk", "vi", "zh", "zh-TW"]; | ||
export declare function extractHeaderLanguage(acceptLanguageHeader: string): AcceptedLanguages | undefined; | ||
//# sourceMappingURL=languages.d.ts.map |
@@ -26,2 +26,3 @@ export const rtlLanguages = ['ar', 'fa']; | ||
'ru', | ||
'sk', | ||
'sv', | ||
@@ -107,3 +108,2 @@ 'th', | ||
* 'si', | ||
* 'sk', | ||
* 'sl', | ||
@@ -110,0 +110,0 @@ * 'sq', |
{ | ||
"name": "@payloadcms/translations", | ||
"version": "3.0.0-alpha.68", | ||
"version": "3.0.0-alpha.69", | ||
"homepage": "https://payloadcms.com", | ||
@@ -40,5 +40,2 @@ "repository": { | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"scripts": { | ||
@@ -45,0 +42,0 @@ "build": "pnpm build:types", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1067628
174
12904
34335
358
358