@payloadcms/translations
Advanced tools
Comparing version 3.2.3-canary.519752f to 3.2.3-canary.5e3c2f6
@@ -67,2 +67,8 @@ export const importDateFNSLocale = async (locale) => { | ||
break; | ||
case 'rs': | ||
result = (await import('date-fns/locale/sr')).sr; | ||
break; | ||
case 'rs-Latin': | ||
result = (await import('date-fns/locale/sr-Latn')).srLatn; | ||
break; | ||
case 'ru': | ||
@@ -69,0 +75,0 @@ result = (await import('date-fns/locale/ru')).ru; |
@@ -456,5 +456,5 @@ export const rsTranslations = { | ||
export const rs = { | ||
dateFNSKey: 'en-US', | ||
dateFNSKey: 'rs', | ||
translations: rsTranslations, | ||
}; | ||
//# sourceMappingURL=rs.js.map |
@@ -456,5 +456,5 @@ export const rsLatinTranslations = { | ||
export const rsLatin = { | ||
dateFNSKey: 'en-US', | ||
dateFNSKey: 'rs-Latin', | ||
translations: rsLatinTranslations, | ||
}; | ||
//# sourceMappingURL=rsLatin.js.map |
@@ -5,3 +5,3 @@ import type { Locale } from 'date-fns'; | ||
import type { acceptedLanguages } from './utilities/languages.js'; | ||
type DateFNSKeys = 'ar' | 'az' | 'bg' | 'cs' | 'da' | 'de' | 'en-US' | 'es' | 'fa-IR' | 'fr' | 'he' | 'hr' | 'hu' | 'it' | 'ja' | 'ko' | 'nb' | 'nl' | 'pl' | 'pt' | 'ro' | 'ru' | 'sk' | 'sl-SI' | 'sv' | 'th' | 'tr' | 'uk' | 'vi' | 'zh-CN' | 'zh-TW'; | ||
type DateFNSKeys = 'ar' | 'az' | 'bg' | 'cs' | 'da' | 'de' | 'en-US' | 'es' | 'fa-IR' | 'fr' | 'he' | 'hr' | 'hu' | 'it' | 'ja' | 'ko' | 'nb' | 'nl' | 'pl' | 'pt' | 'ro' | 'rs' | 'rs-Latin' | 'ru' | 'sk' | 'sl-SI' | 'sv' | 'th' | 'tr' | 'uk' | 'vi' | 'zh-CN' | 'zh-TW'; | ||
export type Language<TDefaultTranslations = DefaultTranslationsObject> = { | ||
@@ -8,0 +8,0 @@ dateFNSKey: DateFNSKeys; |
{ | ||
"name": "@payloadcms/translations", | ||
"version": "3.2.3-canary.519752f", | ||
"version": "3.2.3-canary.5e3c2f6", | ||
"homepage": "https://payloadcms.com", | ||
@@ -51,3 +51,3 @@ "repository": { | ||
"devDependencies": { | ||
"@swc/core": "1.7.10", | ||
"@swc/core": "1.9.3", | ||
"@types/react": "npm:types-react@19.0.0-rc.1", | ||
@@ -54,0 +54,0 @@ "@types/react-dom": "npm:types-react-dom@19.0.0-rc.1", |
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
1408224
17875