Skip to content

Commit 116e069

Browse files
feat: Add Japanese i18n (#756)
Co-authored-by: Matthew Lipski <[email protected]>
1 parent f332783 commit 116e069

File tree

2 files changed

+209
-1
lines changed

2 files changed

+209
-1
lines changed

packages/core/src/i18n/locales/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
export * from "./en";
2+
export * from "./fr";
3+
export * from "./ja";
24
export * from "./nl";
35
export * from "./zh";
4-
export * from "./fr";
56
export * from "./pl";
67
export * from "./is";
78
export * from "./vi";

packages/core/src/i18n/locales/ja.ts

Lines changed: 207 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,207 @@
1+
import { Dictionary } from "../dictionary";
2+
3+
export const ja: Dictionary = {
4+
slash_menu: {
5+
heading: {
6+
title: "見出し1",
7+
subtext: "トップレベルの見出しに使用",
8+
aliases: ["h", "見出し1", "h1", "大見出し"],
9+
group: "見出し",
10+
},
11+
heading_2: {
12+
title: "見出し2",
13+
subtext: "重要なセクションに使用",
14+
aliases: ["h2", "見出し2", "subheading", "中見出し"],
15+
group: "見出し",
16+
},
17+
heading_3: {
18+
title: "見出し3",
19+
subtext: "セクションやグループの見出しに使用",
20+
aliases: ["h3", "見出し3", "subheading", "小見出し"],
21+
group: "見出し",
22+
},
23+
numbered_list: {
24+
title: "番号付リスト",
25+
subtext: "番号付リストを表示するために使用",
26+
aliases: [
27+
"ol",
28+
"li",
29+
"numberedlist",
30+
"numbered list",
31+
"リスト",
32+
"番号付リスト",
33+
"番号 リスト",
34+
],
35+
group: "基本ブロック",
36+
},
37+
bullet_list: {
38+
title: "箇条書き",
39+
subtext: "箇条書きを表示するために使用",
40+
aliases: ["ul", "li", "リスト", "箇条書きリスト"],
41+
group: "基本ブロック",
42+
},
43+
paragraph: {
44+
title: "標準テキスト",
45+
subtext: "本文に使用",
46+
aliases: ["p", "paragraph", "標準テキスト"],
47+
group: "基本ブロック",
48+
},
49+
table: {
50+
title: "表",
51+
subtext: "表に使用",
52+
aliases: ["table", "表", "テーブル"],
53+
group: "高度なブロック",
54+
},
55+
image: {
56+
title: "画像",
57+
subtext: "画像を挿入",
58+
aliases: [
59+
"image",
60+
"imageUpload",
61+
"upload",
62+
"img",
63+
"picture",
64+
"media",
65+
"url",
66+
"drive",
67+
"dropbox",
68+
"画像",
69+
],
70+
group: "メディア",
71+
},
72+
},
73+
placeholders: {
74+
default: "テキストを入力するか'/' を入力してコマンド選択",
75+
heading: "見出し",
76+
bulletListItem: "リストを追加",
77+
numberedListItem: "リストを追加",
78+
},
79+
image: {
80+
add_button: "画像を追加",
81+
},
82+
// from react package:
83+
side_menu: {
84+
add_block_label: "ブロックを追加",
85+
drag_handle_label: "ブロックメニュー",
86+
},
87+
drag_handle: {
88+
delete_menuitem: "削除",
89+
colors_menuitem: "色を変更",
90+
},
91+
table_handle: {
92+
delete_column_menuitem: "列を削除",
93+
delete_row_menuitem: "行を削除",
94+
add_left_menuitem: "左に列を追加",
95+
add_right_menuitem: "右に列を追加",
96+
add_above_menuitem: "上に行を追加",
97+
add_below_menuitem: "下に行を追加",
98+
},
99+
suggestion_menu: {
100+
no_items_title: "アイテムが見つかりません",
101+
loading: "読込中…",
102+
},
103+
color_picker: {
104+
text_title: "文字色",
105+
background_title: "背景色",
106+
colors: {
107+
default: "デフォルト",
108+
gray: "グレー",
109+
brown: "茶色",
110+
red: "赤",
111+
orange: "オレンジ",
112+
yellow: "黄色",
113+
green: "緑",
114+
blue: "青",
115+
purple: "紫",
116+
pink: "ピンク",
117+
},
118+
},
119+
120+
formatting_toolbar: {
121+
bold: {
122+
tooltip: "太字",
123+
secondary_tooltip: "Mod+B",
124+
},
125+
italic: {
126+
tooltip: "斜体",
127+
secondary_tooltip: "Mod+I",
128+
},
129+
underline: {
130+
tooltip: "下線",
131+
secondary_tooltip: "Mod+U",
132+
},
133+
strike: {
134+
tooltip: "打ち消し",
135+
secondary_tooltip: "Mod+Shift+X",
136+
},
137+
code: {
138+
tooltip: "コード",
139+
secondary_tooltip: "",
140+
},
141+
colors: {
142+
tooltip: "色",
143+
},
144+
link: {
145+
tooltip: "リンク",
146+
secondary_tooltip: "Mod+K",
147+
},
148+
image_caption: {
149+
tooltip: "キャプションを編集",
150+
input_placeholder: "キャプションを編集",
151+
},
152+
image_replace: {
153+
tooltip: "画像の置き換え",
154+
},
155+
nest: {
156+
tooltip: "インデント増",
157+
secondary_tooltip: "Tab",
158+
},
159+
unnest: {
160+
tooltip: "インデント減",
161+
secondary_tooltip: "Shift+Tab",
162+
},
163+
align_left: {
164+
tooltip: "左揃え",
165+
},
166+
align_center: {
167+
tooltip: "中央揃え",
168+
},
169+
align_right: {
170+
tooltip: "右揃え",
171+
},
172+
align_justify: {
173+
tooltip: "両端揃え",
174+
},
175+
},
176+
image_panel: {
177+
upload: {
178+
title: "アップロード",
179+
file_placeholder: "画像アップロード",
180+
upload_error: "エラー: アップロードが失敗しました",
181+
},
182+
embed: {
183+
title: "埋め込み",
184+
embed_button: "画像を埋め込み",
185+
url_placeholder: "URLを入力",
186+
},
187+
},
188+
link_toolbar: {
189+
delete: {
190+
tooltip: "リンクを解除",
191+
},
192+
edit: {
193+
text: "リンクを編集",
194+
tooltip: "編集",
195+
},
196+
open: {
197+
tooltip: "新しいタブでリンクを開く",
198+
},
199+
form: {
200+
title_placeholder: "タイトルを編集",
201+
url_placeholder: "URLを編集",
202+
},
203+
},
204+
generic: {
205+
ctrl_shortcut: "Ctrl",
206+
},
207+
};

0 commit comments

Comments
 (0)