diff --git a/packages/translations/src/importDateFNSLocale.ts b/packages/translations/src/importDateFNSLocale.ts index ec4078d04e6..39c46b59293 100644 --- a/packages/translations/src/importDateFNSLocale.ts +++ b/packages/translations/src/importDateFNSLocale.ts @@ -87,6 +87,14 @@ export const importDateFNSLocale = async (locale: string): Promise => { case 'ro': result = (await import('date-fns/locale/ro')).ro + 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': result = (await import('date-fns/locale/ru')).ru diff --git a/packages/translations/src/languages/rs.ts b/packages/translations/src/languages/rs.ts index f8f28c3a1be..f805f45cf15 100644 --- a/packages/translations/src/languages/rs.ts +++ b/packages/translations/src/languages/rs.ts @@ -478,6 +478,6 @@ export const rsTranslations: DefaultTranslationsObject = { } export const rs: Language = { - dateFNSKey: 'en-US', + dateFNSKey: 'rs', translations: rsTranslations, } diff --git a/packages/translations/src/languages/rsLatin.ts b/packages/translations/src/languages/rsLatin.ts index 51d9ca72bc0..726551cfcf8 100644 --- a/packages/translations/src/languages/rsLatin.ts +++ b/packages/translations/src/languages/rsLatin.ts @@ -479,6 +479,6 @@ export const rsLatinTranslations: DefaultTranslationsObject = { } export const rsLatin: Language = { - dateFNSKey: 'en-US', + dateFNSKey: 'rs-Latin', translations: rsLatinTranslations, } diff --git a/packages/translations/src/types.ts b/packages/translations/src/types.ts index 9729d43e98f..f97018ca8cd 100644 --- a/packages/translations/src/types.ts +++ b/packages/translations/src/types.ts @@ -26,6 +26,8 @@ type DateFNSKeys = | 'pl' | 'pt' | 'ro' + | 'rs' + | 'rs-Latin' | 'ru' | 'sk' | 'sl-SI'