Skip to content

Commit c5b57f7

Browse files
feat(plugin-redirects): add Japanese translations (#15080)
### What? Add Japanese translations for `plugin-redirects` and register the locale in the translations map. ### Why? Provide localized admin UI strings for Japanese users of the plugin. ### How? `packages/plugin-redirects/src/translations/languages/ja.ts` and add `ja` to `packages/plugin-redirects/src/translations/index.ts`.
1 parent 38cd67a commit c5b57f7

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

packages/plugin-redirects/src/translations/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@ import type { GenericTranslationsObject, NestedKeysStripped } from '@payloadcms/
33
import { en } from './languages/en.js'
44
import { es } from './languages/es.js'
55
import { fr } from './languages/fr.js'
6+
import { ja } from './languages/ja.js'
67

78
export const translations = {
89
en,
910
es,
1011
fr,
12+
ja,
1113
}
1214

1315
export type RedirectsTranslations = GenericTranslationsObject
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import type { GenericTranslationsObject } from '@payloadcms/translations'
2+
3+
export const ja: GenericTranslationsObject = {
4+
$schema: '../translation-schema.json',
5+
'plugin-redirects': {
6+
customUrl: 'カスタムURL',
7+
documentToRedirect: 'リダイレクト先のドキュメント',
8+
fromUrl: 'リダイレクト元URL',
9+
internalLink: '内部リンク',
10+
redirectType: 'リダイレクトの種類',
11+
toUrlType: 'リダイレクト先URLの種類',
12+
},
13+
}

0 commit comments

Comments
 (0)