Skip to content

Commit 5188a9b

Browse files
feat(translations): add Catalan translations (#10260)
### What? Translated payload to Catalan ### Why? I needed to have payload in Catalan ### How? By following the [readme](https://github.com/payloadcms/payload/blob/main/packages/translations/README.md) --------- Co-authored-by: Alessio Gravili <alessio@gravili.de>
1 parent c5b1cd6 commit 5188a9b

File tree

6 files changed

+509
-0
lines changed

6 files changed

+509
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { ca } from '@payloadcms/translations/languages/ca'

packages/translations/src/exports/all.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import type { SupportedLanguages } from '../types.js'
33
import { ar } from '../languages/ar.js'
44
import { az } from '../languages/az.js'
55
import { bg } from '../languages/bg.js'
6+
import { ca } from '../languages/ca.js'
67
import { cs } from '../languages/cs.js'
78
import { da } from '../languages/da.js'
89
import { de } from '../languages/de.js'
@@ -39,6 +40,7 @@ export const translations = {
3940
ar,
4041
az,
4142
bg,
43+
ca,
4244
cs,
4345
da,
4446
de,

packages/translations/src/importDateFNSLocale.ts

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

18+
break
19+
case 'ca':
20+
result = (await import('date-fns/locale/ca')).ca
21+
1822
break
1923
case 'cs':
2024
result = (await import('date-fns/locale/cs')).cs

0 commit comments

Comments
 (0)