Skip to content

Commit ffe8020

Browse files
authored
fix(translations): adds et to import file (#10823)
### What? Error thrown when initiating the Estonian language (`et`) from `@payloadcms/translations` <img width="896" alt="Screenshot 2025-01-27 at 3 17 49 PM" src="https://github.com/user-attachments/assets/27603c75-d713-4f11-b141-dc293d51800c" /> ### How? `et` needed to be added to `importDateFNSLocale`. Tested after this change and the error is no longer present. Fixes #10817
1 parent 0d81ff2 commit ffe8020

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/translations/src/importDateFNSLocale.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ export const importDateFNSLocale = async (locale: string): Promise<Locale> => {
3939
case 'es':
4040
result = (await import('date-fns/locale/es')).es
4141

42+
break
43+
case 'et':
44+
result = (await import('date-fns/locale/et')).et
45+
4246
break
4347
case 'fa-IR':
4448
result = (await import('date-fns/locale/fa-IR')).faIR

0 commit comments

Comments
 (0)