Skip to content

Commit df91321

Browse files
authored
feat(translations): add Indonesian translations (#13323)
### What? Translated payload to Indonesian ### Why? I needed to have payload in Indonesian ### How? By following the [readme](https://github.com/payloadcms/payload/blob/main/packages/translations/README.md)
1 parent 1175508 commit df91321

File tree

6 files changed

+630
-1
lines changed

6 files changed

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

packages/translations/src/exports/all.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import { he } from '../languages/he.js'
1818
import { hr } from '../languages/hr.js'
1919
import { hu } from '../languages/hu.js'
2020
import { hy } from '../languages/hy.js'
21+
import { id } from '../languages/id.js'
2122
import { it } from '../languages/it.js'
2223
import { ja } from '../languages/ja.js'
2324
import { ko } from '../languages/ko.js'
@@ -61,6 +62,8 @@ export const translations = {
6162
hr,
6263
hu,
6364
hy,
65+
66+
id,
6467
it,
6568
ja,
6669
ko,

packages/translations/src/importDateFNSLocale.ts

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

74+
break
75+
case 'id':
76+
result = (await import('date-fns/locale/id')).id
77+
7478
break
7579
case 'it':
7680
result = (await import('date-fns/locale/it')).it

0 commit comments

Comments
 (0)