From ecc4755a17874e59e06e70307a40dfd3fb3f20a0 Mon Sep 17 00:00:00 2001 From: Kotering Date: Thu, 28 Nov 2024 18:25:37 +0900 Subject: [PATCH] feat(locale): add Japanese language (#2794) --- src/runtime/locale/index.ts | 1 + src/runtime/locale/ja.ts | 53 +++++++++++++++++++++++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 src/runtime/locale/ja.ts diff --git a/src/runtime/locale/index.ts b/src/runtime/locale/index.ts index 196bcac9..f4babc9e 100644 --- a/src/runtime/locale/index.ts +++ b/src/runtime/locale/index.ts @@ -6,6 +6,7 @@ export { default as es } from './es' export { default as fa_ir } from './fa_ir' export { default as fr } from './fr' export { default as it } from './it' +export { default as ja } from './ja' export { default as ko } from './ko' export { default as nl } from './nl' export { default as pl } from './pl' diff --git a/src/runtime/locale/ja.ts b/src/runtime/locale/ja.ts new file mode 100644 index 00000000..836208e7 --- /dev/null +++ b/src/runtime/locale/ja.ts @@ -0,0 +1,53 @@ +import { defineLocale } from '../composables/defineLocale' + +export default defineLocale({ + name: '日本語', + code: 'ja', + messages: { + inputMenu: { + noMatch: '一致するデータがありません', + noData: 'データがありません', + create: '"{label}"を作成' + }, + calendar: { + prevYear: '前年', + nextYear: '翌年', + prevMonth: '前月', + nextMonth: '翌月' + }, + inputNumber: { + increment: '増やす', + decrement: '減らす' + }, + commandPalette: { + noMatch: '一致するデータがありません', + noData: 'データがありません', + close: '閉じる' + }, + selectMenu: { + noMatch: '一致するデータがありません', + noData: 'データがありません', + create: '"{label}"を作成' + }, + toast: { + close: '閉じる' + }, + carousel: { + prev: '前へ', + next: '次へ', + goto: 'スライド {slide} に移動' + }, + modal: { + close: '閉じる' + }, + slideover: { + close: '閉じる' + }, + alert: { + close: '閉じる' + }, + table: { + noData: 'データがありません' + } + } +})