Skip to content

Commit

Permalink
feat(translations): add Catalan translations (#10260)
Browse files Browse the repository at this point in the history
### 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 <[email protected]>
  • Loading branch information
GerardPolloRebozado and AlessioGr authored Dec 31, 2024
1 parent c5b1cd6 commit 5188a9b
Show file tree
Hide file tree
Showing 6 changed files with 509 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/payload/src/exports/i18n/ca.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { ca } from '@payloadcms/translations/languages/ca'
2 changes: 2 additions & 0 deletions packages/translations/src/exports/all.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import type { SupportedLanguages } from '../types.js'
import { ar } from '../languages/ar.js'
import { az } from '../languages/az.js'
import { bg } from '../languages/bg.js'
import { ca } from '../languages/ca.js'
import { cs } from '../languages/cs.js'
import { da } from '../languages/da.js'
import { de } from '../languages/de.js'
Expand Down Expand Up @@ -39,6 +40,7 @@ export const translations = {
ar,
az,
bg,
ca,
cs,
da,
de,
Expand Down
4 changes: 4 additions & 0 deletions packages/translations/src/importDateFNSLocale.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ export const importDateFNSLocale = async (locale: string): Promise<Locale> => {
case 'bg':
result = (await import('date-fns/locale/bg')).bg

break
case 'ca':
result = (await import('date-fns/locale/ca')).ca

break
case 'cs':
result = (await import('date-fns/locale/cs')).cs
Expand Down
Loading

0 comments on commit 5188a9b

Please sign in to comment.