Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions client/i18next.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export default defineConfig({
Locale.en,
Locale.ru,
Locale.es,
Locale.ja,
],
extract: {
input: 'src/**/*.{js,jsx,ts,tsx}',
Expand Down
1 change: 1 addition & 0 deletions client/src/i18n/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ export const LOCALE_ISO_CODES: Record<Locale, string> = {
[Locale.en]: 'en-US',
[Locale.ru]: 'ru-RU',
[Locale.es]: 'es-ES',
[Locale.ja]: 'ja-JP',
};
export const DEFAULT_LOCALE: Locale = Locale.en;
export const DEFAULT_LOCALE_ISO_CODE = LOCALE_ISO_CODES[Locale.en];
3 changes: 2 additions & 1 deletion client/src/i18n/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
"locale": {
"en": "English",
"es": "Spanish",
"ru": "Russian"
"ru": "Russian",
"ja": "Japanese"
},
"no": "no",
"or": "or",
Expand Down
3 changes: 2 additions & 1 deletion client/src/i18n/locales/es/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
"locale": {
"en": "Inglés",
"es": "Español",
"ru": "Ruso"
"ru": "Ruso",
"ja": "Japonés"
},
"no": "no",
"or": "o",
Expand Down
12 changes: 12 additions & 0 deletions client/src/i18n/locales/ja/components/admin/common.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"adminTable": {
"defaultEmptyMessage": "データが見つかりません",
"defaultLoadingMessage": "読み込み中..."
},
"filterInput": {
"defaultPlaceholder": "検索..."
},
"filterSelect": {
"defaultPlaceholder": "選択..."
}
}
8 changes: 8 additions & 0 deletions client/src/i18n/locales/ja/components/admin/modals.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"snippetViewModal": {
"error": {
"failedLoad": "スニペットの読み込みに失敗しました"
},
"title": "スニペットを読み込み中..."
}
}
7 changes: 7 additions & 0 deletions client/src/i18n/locales/ja/components/admin/selector.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"apiKeys": "APIキー",
"dashboard": "ダッシュボード",
"shares": "共有",
"snippets": "スニペット",
"users": "ユーザー"
}
33 changes: 33 additions & 0 deletions client/src/i18n/locales/ja/components/admin/tabs/apiKeys.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"apiKeyDeletedSuccessfully": "APIキーを削除しました",
"columns": {
"labels": {
"actions": "アクション",
"created": "作成日時",
"lastUsed": "最終使用日時",
"name": "名前",
"owner": "所有者",
"status": "ステータス"
}
},
"confirmationModal": {
"message": "このAPIキーを削除してもよろしいですか?キーの所有者はAPIにアクセスできなくなります。この操作は取り消せません。",
"title": "APIキーを削除"
},
"entityName_one": "APIキー",
"entityName_other": "APIキー",
"error": {
"default": "APIキーの削除に失敗しました"
},
"filters": {
"userId": "ユーザーIDで絞り込み"
},
"status": {
"active": "有効",
"inactive": "無効"
},
"table": {
"emptyMessage": "APIキーが見つかりません",
"loadingMessage": "APIキーを読み込み中..."
}
}
31 changes: 31 additions & 0 deletions client/src/i18n/locales/ja/components/admin/tabs/dashboard.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"card": {
"apiKeys": {
"title": "APIキー"
},
"shares": {
"title": "共有"
},
"snippets": {
"apiKeys": {
"active": "有効"
},
"shares": {
"total": "合計"
},
"title": "スニペット",
"viewType": {
"private": "非公開",
"public": "公開"
}
},
"users": {
"authType": {
"internal": "内部",
"oidc": "OIDC"
},
"title": "ユーザー"
}
},
"loadingMessage": "統計を読み込み中..."
}
49 changes: 49 additions & 0 deletions client/src/i18n/locales/ja/components/admin/tabs/shares.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"action": {
"copyShareLink": "共有リンクをコピー",
"delete": "共有を削除",
"viewSnippet": "スニペットを表示"
},
"columns": {
"labels": {
"actions": "アクション",
"auth": "認証必須",
"created": "作成日時",
"expires": "有効期限",
"id": "共有ID",
"owner": "所有者",
"title": "タイトル"
}
},
"confirmationModal": {
"message": "この共有リンクを削除してもよろしいですか?リンクを持つ誰もスニペットにアクセスできなくなります。この操作は取り消せません。",
"title": "共有を削除"
},
"entityName_one": "共有",
"entityName_other": "共有",
"error": {
"delete": {
"default": "共有の削除に失敗しました"
}
},
"filters": {
"authType": {
"all": "すべての認証タイプ",
"public": "公開",
"requiresAuth": "認証必須"
},
"userId": "ユーザーIDで絞り込み"
},
"success": {
"copied": {
"default": "共有リンクをクリップボードにコピーしました"
},
"delete": {
"default": "共有を削除しました"
}
},
"table": {
"emptyMessage": "共有が見つかりません",
"loadingMessage": "共有を読み込み中..."
}
}
57 changes: 57 additions & 0 deletions client/src/i18n/locales/ja/components/admin/tabs/snippets.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{
"action": {
"delete": "スニペットを削除",
"makePrivate": "非公開にする",
"makePublic": "公開する",
"scanForOffensiveContent": "不適切なコンテンツをスキャン",
"showAllSnippets": "すべてのスニペットを表示",
"viewSnippet": "スニペットを表示"
},
"columns": {
"labels": {
"actions": "アクション",
"fragments": "フラグメント",
"owner": "所有者",
"title": "タイトル",
"updated": "更新日時",
"visibility": "公開状態"
}
},
"confirmationModal": {
"message": "このスニペットを完全に削除してもよろしいですか?この操作は取り消せません。",
"title": "スニペットを削除"
},
"containsOffensiveWords": "不適切な言葉を含んでいます: {{words}}",
"entityName_one": "スニペット",
"entityName_other": "スニペット",
"error": {
"delete": {
"default": "スニペットの削除に失敗しました"
},
"update": {
"default": "スニペットの公開状態の更新に失敗しました"
}
},
"filters": {
"search": "スニペットを検索...",
"userId": "ユーザーID",
"visibility": {
"all": "すべての公開状態",
"private": "非公開",
"public": "公開"
}
},
"offensiveContentMessage": "不適切なコンテンツを含む{{total}}件の{{entityName}}が見つかりました",
"success": {
"delete": {
"default": "スニペットを削除しました"
},
"update": {
"default": "スニペットの公開状態を更新しました"
}
},
"table": {
"emptyMessage": "スニペットが見つかりません",
"loadingMessage": "スニペットを読み込み中..."
}
}
63 changes: 63 additions & 0 deletions client/src/i18n/locales/ja/components/admin/tabs/users.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
{
"action": {
"activate": "ユーザーを有効化",
"deactivate": "ユーザーを無効化",
"delete": "ユーザーを削除"
},
"columns": {
"labels": {
"actions": "アクション",
"apiKeysCount": "APIキー",
"authType": "認証タイプ",
"created": "作成日時",
"email": "メールアドレス",
"lastLogin": "最終ログイン",
"snippetsCount": "スニペット",
"status": "ステータス",
"username": "ユーザー名"
}
},
"confirmationModal": {
"message": "このユーザーを削除してもよろしいですか?すべてのスニペット、APIキー、共有が完全に削除されます。この操作は取り消せません。",
"title": "ユーザーを削除"
},
"entityName_one": "ユーザー",
"entityName_other": "ユーザー",
"error": {
"delete": {
"default": "ユーザーの削除に失敗しました"
},
"update": {
"default": "ユーザーの更新に失敗しました"
}
},
"filters": {
"authType": {
"all": "すべての認証タイプ",
"internal": "内部",
"oidc": "OIDC"
},
"search": "ユーザーを検索...",
"status": {
"active": "有効",
"all": "すべてのステータス",
"inactive": "無効"
}
},
"status": {
"active": "有効",
"inactive": "無効"
},
"success": {
"delete": {
"default": "ユーザーを削除しました"
},
"update": {
"default": "ユーザーのステータスを更新しました"
}
},
"table": {
"emptyMessage": "ユーザーが見つかりません",
"loadingMessage": "ユーザーを読み込み中..."
}
}
Loading
Loading