From 66a8345f6f53d35544009bcf3359aafe2ca3baa8 Mon Sep 17 00:00:00 2001 From: splincode Date: Tue, 6 Aug 2024 13:28:00 +0300 Subject: [PATCH] feat(i18n): add japanese --- .../language-switcher.component.ts | 1 + projects/i18n/languages/index.ts | 1 + .../i18n/languages/japan/addon-commerce.ts | 6 + projects/i18n/languages/japan/addon-editor.ts | 67 ++++++ .../i18n/languages/japan/addon-preview.ts | 12 + projects/i18n/languages/japan/addon-table.ts | 10 + projects/i18n/languages/japan/core.ts | 26 +++ projects/i18n/languages/japan/countries.ts | 219 ++++++++++++++++++ projects/i18n/languages/japan/index.ts | 8 + projects/i18n/languages/japan/japan.ts | 18 ++ projects/i18n/languages/japan/kit.ts | 64 +++++ projects/i18n/languages/japan/ng-package.json | 5 + 12 files changed, 437 insertions(+) create mode 100644 projects/i18n/languages/japan/addon-commerce.ts create mode 100644 projects/i18n/languages/japan/addon-editor.ts create mode 100644 projects/i18n/languages/japan/addon-preview.ts create mode 100644 projects/i18n/languages/japan/addon-table.ts create mode 100644 projects/i18n/languages/japan/core.ts create mode 100644 projects/i18n/languages/japan/countries.ts create mode 100644 projects/i18n/languages/japan/index.ts create mode 100644 projects/i18n/languages/japan/japan.ts create mode 100644 projects/i18n/languages/japan/kit.ts create mode 100644 projects/i18n/languages/japan/ng-package.json diff --git a/projects/addon-doc/components/language-switcher/language-switcher.component.ts b/projects/addon-doc/components/language-switcher/language-switcher.component.ts index 76dda5530964..b257a572e1dd 100644 --- a/projects/addon-doc/components/language-switcher/language-switcher.component.ts +++ b/projects/addon-doc/components/language-switcher/language-switcher.component.ts @@ -23,6 +23,7 @@ export class TuiLanguageSwitcherComponent { ['french', TuiCountryIsoCode.FR], ['hebrew', TuiCountryIsoCode.IL], ['german', TuiCountryIsoCode.DE], + ['japan', TuiCountryIsoCode.JP], ['italian', TuiCountryIsoCode.IT], ['polish', TuiCountryIsoCode.PL], ['portuguese', TuiCountryIsoCode.PT], diff --git a/projects/i18n/languages/index.ts b/projects/i18n/languages/index.ts index afe56fd09031..2e2935304540 100644 --- a/projects/i18n/languages/index.ts +++ b/projects/i18n/languages/index.ts @@ -5,6 +5,7 @@ export * from '@taiga-ui/i18n/languages/french'; export * from '@taiga-ui/i18n/languages/german'; export * from '@taiga-ui/i18n/languages/hebrew'; export * from '@taiga-ui/i18n/languages/italian'; +export * from '@taiga-ui/i18n/languages/japan'; export * from '@taiga-ui/i18n/languages/kazakh'; export * from '@taiga-ui/i18n/languages/malay'; export * from '@taiga-ui/i18n/languages/polish'; diff --git a/projects/i18n/languages/japan/addon-commerce.ts b/projects/i18n/languages/japan/addon-commerce.ts new file mode 100644 index 000000000000..b214bbcf68e0 --- /dev/null +++ b/projects/i18n/languages/japan/addon-commerce.ts @@ -0,0 +1,6 @@ +import {TuiLanguageCommerce} from '@taiga-ui/i18n/interfaces'; + +export const TUI_JAPAN_LANGUAGE_ADDON_COMMERCE: TuiLanguageCommerce = { + cardNumber: ['番号', 'カード番号'], + cardExpiry: ['期限切れ', '有効期間'], +}; diff --git a/projects/i18n/languages/japan/addon-editor.ts b/projects/i18n/languages/japan/addon-editor.ts new file mode 100644 index 000000000000..11f6a5541582 --- /dev/null +++ b/projects/i18n/languages/japan/addon-editor.ts @@ -0,0 +1,67 @@ +import {TuiLanguageEditor} from '@taiga-ui/i18n/interfaces'; + +export const TUI_JAPAN_LANGUAGE_ADDON_EDITOR: TuiLanguageEditor = { + colorSelectorModeNames: ['ソリッドカラー', '勾配'], + toolbarTools: { + undo: '元に戻す', + redo: 'やり直す', + font: 'フォント', + fontStyle: 'フォントスタイル', + fontSize: 'フォントサイズ', + bold: '大胆な', + italic: 'イタリック', + underline: '下線', + strikeThrough: '取り消し線', + justify: '正当化する', + justifyLeft: '左揃え', + justifyCenter: '中央揃え', + justifyRight: '右揃え', + justifyFull: '両端揃え', + list: 'リスト', + indent: 'インデント', + outdent: 'アウトデント', + unorderedList: '順序なしリスト', + orderedList: '順序付きリスト', + quote: '引用', + foreColor: '色', + backColor: '背景色', + hiliteColor: 'ハイライトカラー', + clear: 'クリア', + link: 'リンク', + attach: 'ファイルを添付する', + tex: 'テキストを挿入', + code: 'コード', + image: '画像を挿入', + insertHorizontalRule: '水平線を挿入', + superscript: '上付き文字', + subscript: '添字', + insertTable: '表を挿入', + insertGroup: 'グループを挿入', + hiliteGroup: 'ハイライトグループ', + removeGroup: 'グループを削除', + insertAnchor: 'アンカーを挿入', + mergeCells: 'セルを結合します', + splitCells: 'セルを分割する', + rowsColumnsManaging: '行と列の管理', + cellColor: 'セルの色', + setDetails: '詳細', + removeDetails: '詳細を削除', + }, + editorEditLink: { + urlExample: 'example.com', + anchorExample: 'アンカー', + }, + editorTableCommands: [ + ['前に列を挿入', '列を挿入'], + ['前に行を挿入', '行を挿入'], + ['列を削除', '行を削除'], + ], + editorCodeOptions: ['テキスト内のコード', 'ブロック内のコード'], + editorFontOptions: { + small: '小さい', + large: '大きい', + normal: '普通', + title: 'タイトル', + subtitle: '字幕', + }, +}; diff --git a/projects/i18n/languages/japan/addon-preview.ts b/projects/i18n/languages/japan/addon-preview.ts new file mode 100644 index 000000000000..0d7cb1328d43 --- /dev/null +++ b/projects/i18n/languages/japan/addon-preview.ts @@ -0,0 +1,12 @@ +import {TuiLanguagePreview} from '@taiga-ui/i18n/interfaces'; + +export const TUI_JAPAN_LANGUAGE_ADDON_PREVIEW: TuiLanguagePreview = { + previewTexts: { + rotate: '回転', + }, + zoomTexts: { + zoomOut: 'ズームアウトする', + zoomIn: 'ズームイン', + reset: 'リセット', + }, +}; diff --git a/projects/i18n/languages/japan/addon-table.ts b/projects/i18n/languages/japan/addon-table.ts new file mode 100644 index 000000000000..7d498e704b68 --- /dev/null +++ b/projects/i18n/languages/japan/addon-table.ts @@ -0,0 +1,10 @@ +import {TuiLanguageTable} from '@taiga-ui/i18n/interfaces'; + +export const TUI_JAPAN_LANGUAGE_ADDON_TABLE: TuiLanguageTable = { + showHideText: '表示または非表示', + paginationTexts: { + pages: 'ページ', + linesPerPage: '1ページあたりの行数', + of: 'の', + }, +}; diff --git a/projects/i18n/languages/japan/core.ts b/projects/i18n/languages/japan/core.ts new file mode 100644 index 000000000000..c1088d887bff --- /dev/null +++ b/projects/i18n/languages/japan/core.ts @@ -0,0 +1,26 @@ +import {TuiLanguageCore} from '@taiga-ui/i18n/interfaces'; + +import {TUI_JAPAN_LANGUAGE_COUNTRIES} from './countries'; + +export const TUI_JAPAN_LANGUAGE_CORE: TuiLanguageCore = { + months: [ + '1月', + '2月', + '3月', + '4月', + '5月', + '6月', + '7月', + '8月', + '9月', + '10月', + '11月', + '12月', + ], + close: '近い', + nothingFoundMessage: '何も見つかりません', + defaultErrorMessage: '値が無効です', + spinTexts: ['前の', '次'], + shortWeekDays: ['月曜日', '火曜日', '水曜日', '木曜日', '金曜日', '土曜日', '日曜日'], + countries: TUI_JAPAN_LANGUAGE_COUNTRIES, +}; diff --git a/projects/i18n/languages/japan/countries.ts b/projects/i18n/languages/japan/countries.ts new file mode 100644 index 000000000000..049e1f6cacf9 --- /dev/null +++ b/projects/i18n/languages/japan/countries.ts @@ -0,0 +1,219 @@ +import {TuiCountryIsoCode} from '@taiga-ui/i18n/enums'; + +export const TUI_JAPAN_LANGUAGE_COUNTRIES: Record = { + [TuiCountryIsoCode.AD]: 'Andorra', + [TuiCountryIsoCode.AE]: 'United Arab Emirates', + [TuiCountryIsoCode.AF]: 'Afghanistan', + [TuiCountryIsoCode.AG]: 'Antigua and Barbuda', + [TuiCountryIsoCode.BL]: 'Saint Barthélemy', + [TuiCountryIsoCode.AI]: 'Anguilla', + [TuiCountryIsoCode.AL]: 'Albania', + [TuiCountryIsoCode.AM]: 'Armenia', + [TuiCountryIsoCode.AO]: 'Angola', + [TuiCountryIsoCode.AR]: 'Argentina', + [TuiCountryIsoCode.AT]: 'Austria', + [TuiCountryIsoCode.AU]: 'Australia', + [TuiCountryIsoCode.AW]: 'Aruba', + [TuiCountryIsoCode.AZ]: 'Azerbaijan', + [TuiCountryIsoCode.BA]: 'Bosnia and Herzegovina', + [TuiCountryIsoCode.BB]: 'Barbados', + [TuiCountryIsoCode.BD]: 'Bangladesh', + [TuiCountryIsoCode.BE]: 'Belgium', + [TuiCountryIsoCode.BF]: 'Burkina Faso', + [TuiCountryIsoCode.BG]: 'Bulgaria', + [TuiCountryIsoCode.BH]: 'Bahrain', + [TuiCountryIsoCode.BI]: 'Burundi', + [TuiCountryIsoCode.BJ]: 'Benin', + [TuiCountryIsoCode.GF]: 'Guyana', + [TuiCountryIsoCode.BM]: 'Bermuda', + [TuiCountryIsoCode.BN]: 'Brunei Darussalam', + [TuiCountryIsoCode.BO]: 'Bolivia', + [TuiCountryIsoCode.BQ]: 'Bonaire, Sint Eustatius and Saba', + [TuiCountryIsoCode.BR]: 'Brazil', + [TuiCountryIsoCode.BS]: 'Bahamas', + [TuiCountryIsoCode.BT]: 'Bhutan', + [TuiCountryIsoCode.BW]: 'Botswana', + [TuiCountryIsoCode.BY]: 'Belarus', + [TuiCountryIsoCode.BZ]: 'Belize', + [TuiCountryIsoCode.CA]: 'Canada', + [TuiCountryIsoCode.CD]: 'Dem. Rep. Congo (Kinshasa)', + [TuiCountryIsoCode.CF]: 'Central African Republic', + [TuiCountryIsoCode.CG]: 'Congo (Brazzaville)', + [TuiCountryIsoCode.CH]: 'Switzerland', + [TuiCountryIsoCode.CI]: 'Ivory Coast', + [TuiCountryIsoCode.CL]: 'Chile', + [TuiCountryIsoCode.CM]: 'Cameroon', + [TuiCountryIsoCode.CN]: 'China', + [TuiCountryIsoCode.CO]: 'Colombia', + [TuiCountryIsoCode.CR]: 'Costa Rica', + [TuiCountryIsoCode.CU]: 'Cuba', + [TuiCountryIsoCode.CV]: 'Cape Verde', + [TuiCountryIsoCode.CW]: 'Curaçao', + [TuiCountryIsoCode.CY]: 'Cyprus', + [TuiCountryIsoCode.CZ]: 'Czech Republic', + [TuiCountryIsoCode.DE]: 'Germany', + [TuiCountryIsoCode.DJ]: 'Djibouti', + [TuiCountryIsoCode.DK]: 'Denmark', + [TuiCountryIsoCode.DM]: 'Dominica', + [TuiCountryIsoCode.DO]: 'Dominican Republic', + [TuiCountryIsoCode.DZ]: 'Algeria', + [TuiCountryIsoCode.EC]: 'Ecuador', + [TuiCountryIsoCode.EE]: 'Estonia', + [TuiCountryIsoCode.EG]: 'Egypt', + [TuiCountryIsoCode.ER]: 'Eritrea', + [TuiCountryIsoCode.ES]: 'Spain', + [TuiCountryIsoCode.ET]: 'Ethiopia', + [TuiCountryIsoCode.FI]: 'Finland', + [TuiCountryIsoCode.FJ]: 'Fiji', + [TuiCountryIsoCode.FK]: 'Falkland Islands', + [TuiCountryIsoCode.FM]: 'F.S. of Micronesia', + [TuiCountryIsoCode.FR]: 'France', + [TuiCountryIsoCode.GA]: 'Gabon', + [TuiCountryIsoCode.GB]: 'United Kingdom', + [TuiCountryIsoCode.GD]: 'Grenada', + [TuiCountryIsoCode.GE]: 'Georgia', + [TuiCountryIsoCode.GP]: 'Guadeloupe', + [TuiCountryIsoCode.GH]: 'Ghana', + [TuiCountryIsoCode.GI]: 'Gibraltar', + [TuiCountryIsoCode.GL]: 'Greenland', + [TuiCountryIsoCode.GM]: 'Gambia', + [TuiCountryIsoCode.GN]: 'Guinea', + [TuiCountryIsoCode.MF]: 'Saint-Martin', + [TuiCountryIsoCode.GQ]: 'Equatorial Guinea', + [TuiCountryIsoCode.GR]: 'Greece', + [TuiCountryIsoCode.GT]: 'Guatemala', + [TuiCountryIsoCode.GW]: 'Guinea-Bissau', + [TuiCountryIsoCode.GY]: 'Guyana', + [TuiCountryIsoCode.HK]: 'Hong Kong', + [TuiCountryIsoCode.HN]: 'Honduras', + [TuiCountryIsoCode.HR]: 'Croatia', + [TuiCountryIsoCode.HT]: 'Haiti', + [TuiCountryIsoCode.HU]: 'Hungary', + [TuiCountryIsoCode.ID]: 'Indonesia', + [TuiCountryIsoCode.IE]: 'Ireland', + [TuiCountryIsoCode.IL]: 'Israel', + [TuiCountryIsoCode.IN]: 'India', + [TuiCountryIsoCode.IQ]: 'Iraq', + [TuiCountryIsoCode.IR]: 'Iran', + [TuiCountryIsoCode.IS]: 'Iceland', + [TuiCountryIsoCode.IT]: 'Italy', + [TuiCountryIsoCode.JM]: 'Jamaica', + [TuiCountryIsoCode.JO]: 'Jordan', + [TuiCountryIsoCode.JP]: 'Japan', + [TuiCountryIsoCode.KE]: 'Kenya', + [TuiCountryIsoCode.KG]: 'Kyrgyzstan', + [TuiCountryIsoCode.KH]: 'Cambodia', + [TuiCountryIsoCode.KM]: 'Comoros', + [TuiCountryIsoCode.KN]: 'Saint Kitts and Nevis', + [TuiCountryIsoCode.KP]: 'Korean PDR', + [TuiCountryIsoCode.KR]: 'Rep. Korea', + [TuiCountryIsoCode.KW]: 'Kuwait', + [TuiCountryIsoCode.KY]: 'Cayman Islands', + [TuiCountryIsoCode.KZ]: 'Kazakhstan', + [TuiCountryIsoCode.LA]: 'Laos', + [TuiCountryIsoCode.LB]: 'Lebanon', + [TuiCountryIsoCode.LC]: 'Saint Lucia', + [TuiCountryIsoCode.LI]: 'Liechtenstein', + [TuiCountryIsoCode.LK]: 'Sri Lanka', + [TuiCountryIsoCode.LR]: 'Liberia', + [TuiCountryIsoCode.LS]: 'Lesotho', + [TuiCountryIsoCode.LT]: 'Lithuania', + [TuiCountryIsoCode.LU]: 'Luxembourg', + [TuiCountryIsoCode.LV]: 'Latvia', + [TuiCountryIsoCode.LY]: 'Libya', + [TuiCountryIsoCode.MA]: 'Morocco', + [TuiCountryIsoCode.MC]: 'Monaco', + [TuiCountryIsoCode.MD]: 'Moldova', + [TuiCountryIsoCode.ME]: 'Montenegro', + [TuiCountryIsoCode.MQ]: 'Martinique', + [TuiCountryIsoCode.MG]: 'Madagascar', + [TuiCountryIsoCode.MK]: 'Rep. of North Macedonia', + [TuiCountryIsoCode.ML]: 'Mali', + [TuiCountryIsoCode.MM]: 'Burma (Myanmar)', + [TuiCountryIsoCode.MN]: 'Mongolia', + [TuiCountryIsoCode.MO]: 'Macau', + [TuiCountryIsoCode.RE]: 'Réunion', + [TuiCountryIsoCode.MR]: 'Mauritania', + [TuiCountryIsoCode.MS]: 'Montserrat', + [TuiCountryIsoCode.MT]: 'Malta', + [TuiCountryIsoCode.MU]: 'Mauritius', + [TuiCountryIsoCode.MV]: 'Maldives', + [TuiCountryIsoCode.MW]: 'Malawi', + [TuiCountryIsoCode.MX]: 'Mexico', + [TuiCountryIsoCode.MY]: 'Malaysia', + [TuiCountryIsoCode.MZ]: 'Mozambique', + [TuiCountryIsoCode.NA]: 'Namibia', + [TuiCountryIsoCode.NC]: 'New Caledonia', + [TuiCountryIsoCode.NE]: 'Niger', + [TuiCountryIsoCode.NG]: 'Nigeria', + [TuiCountryIsoCode.NI]: 'Nicaragua', + [TuiCountryIsoCode.NL]: 'Netherlands', + [TuiCountryIsoCode.NO]: 'Norway', + [TuiCountryIsoCode.NP]: 'Nepal', + [TuiCountryIsoCode.NZ]: 'New Zealand', + [TuiCountryIsoCode.OM]: 'Oman', + [TuiCountryIsoCode.PA]: 'Panama', + [TuiCountryIsoCode.PE]: 'Peru', + [TuiCountryIsoCode.PF]: 'French Polynesia (Tahiti)', + [TuiCountryIsoCode.PG]: 'Papua New Guinea', + [TuiCountryIsoCode.PH]: 'Philippines', + [TuiCountryIsoCode.PK]: 'Pakistan', + [TuiCountryIsoCode.PL]: 'Poland', + [TuiCountryIsoCode.PT]: 'Portugal', + [TuiCountryIsoCode.PW]: 'Palau', + [TuiCountryIsoCode.PY]: 'Paraguay', + [TuiCountryIsoCode.QA]: 'Qatar', + [TuiCountryIsoCode.YT]: 'Mayotte', + [TuiCountryIsoCode.RO]: 'Romania', + [TuiCountryIsoCode.RS]: 'Serbia', + [TuiCountryIsoCode.RU]: 'Russia', + [TuiCountryIsoCode.RW]: 'Rwanda', + [TuiCountryIsoCode.SA]: 'Saudi Arabia', + [TuiCountryIsoCode.SB]: 'Solomon Islands', + [TuiCountryIsoCode.SC]: 'Seychelles', + [TuiCountryIsoCode.SD]: 'Sudan', + [TuiCountryIsoCode.SE]: 'Sweden', + [TuiCountryIsoCode.SG]: 'Singapore', + [TuiCountryIsoCode.SH]: 'Saint Helena', + [TuiCountryIsoCode.SI]: 'Slovenia', + [TuiCountryIsoCode.SK]: 'Slovakia', + [TuiCountryIsoCode.SL]: 'Sierra Leone', + [TuiCountryIsoCode.SM]: 'San Marino', + [TuiCountryIsoCode.SN]: 'Senegal', + [TuiCountryIsoCode.SO]: 'Somalia', + [TuiCountryIsoCode.SR]: 'Suriname', + [TuiCountryIsoCode.ST]: 'Sao Tome and Principe', + [TuiCountryIsoCode.SV]: 'El Salvador', + [TuiCountryIsoCode.SX]: 'Sint Maarten', + [TuiCountryIsoCode.SY]: 'Syrian Arab Republic', + [TuiCountryIsoCode.SZ]: 'Swaziland', + [TuiCountryIsoCode.TC]: 'Turks and Caicos', + [TuiCountryIsoCode.TD]: 'Chad', + [TuiCountryIsoCode.TG]: 'Togo', + [TuiCountryIsoCode.TH]: 'Thailand', + [TuiCountryIsoCode.TJ]: 'Tajikistan', + [TuiCountryIsoCode.TL]: 'East Timor', + [TuiCountryIsoCode.TM]: 'Turkmenistan', + [TuiCountryIsoCode.TN]: 'Tunisia', + [TuiCountryIsoCode.TO]: 'Tonga', + [TuiCountryIsoCode.TR]: 'Turkey', + [TuiCountryIsoCode.TT]: 'Trinidad and Tobago', + [TuiCountryIsoCode.TW]: 'Taiwan', + [TuiCountryIsoCode.TZ]: 'Tanzania', + [TuiCountryIsoCode.UA]: 'Ukraine', + [TuiCountryIsoCode.UG]: 'Uganda', + [TuiCountryIsoCode.US]: 'USA', + [TuiCountryIsoCode.UY]: 'Uruguay', + [TuiCountryIsoCode.UZ]: 'Uzbekistan', + [TuiCountryIsoCode.VC]: 'Saint Vincent and the Grenadines', + [TuiCountryIsoCode.VE]: 'Venezuela', + [TuiCountryIsoCode.VG]: 'British Virgin Islands', + [TuiCountryIsoCode.VN]: 'Vietnam', + [TuiCountryIsoCode.VU]: 'Vanuatu', + [TuiCountryIsoCode.WS]: 'Samoa', + [TuiCountryIsoCode.XK]: 'Kosovo', + [TuiCountryIsoCode.YE]: 'Yemen', + [TuiCountryIsoCode.ZA]: 'South Africa', + [TuiCountryIsoCode.ZM]: 'Zambia', + [TuiCountryIsoCode.ZW]: 'Zimbabwe', +}; diff --git a/projects/i18n/languages/japan/index.ts b/projects/i18n/languages/japan/index.ts new file mode 100644 index 000000000000..a93fd774eb3e --- /dev/null +++ b/projects/i18n/languages/japan/index.ts @@ -0,0 +1,8 @@ +export * from './addon-commerce'; +export * from './addon-editor'; +export * from './addon-preview'; +export * from './addon-table'; +export * from './core'; +export * from './countries'; +export * from './japan'; +export * from './kit'; diff --git a/projects/i18n/languages/japan/japan.ts b/projects/i18n/languages/japan/japan.ts new file mode 100644 index 000000000000..1c9d97d7af9c --- /dev/null +++ b/projects/i18n/languages/japan/japan.ts @@ -0,0 +1,18 @@ +import {TuiLanguage} from '@taiga-ui/i18n/interfaces'; + +import {TUI_JAPAN_LANGUAGE_ADDON_COMMERCE} from './addon-commerce'; +import {TUI_JAPAN_LANGUAGE_ADDON_EDITOR} from './addon-editor'; +import {TUI_JAPAN_LANGUAGE_ADDON_PREVIEW} from './addon-preview'; +import {TUI_JAPAN_LANGUAGE_ADDON_TABLE} from './addon-table'; +import {TUI_JAPAN_LANGUAGE_CORE} from './core'; +import {TUI_JAPAN_LANGUAGE_KIT} from './kit'; + +export const TUI_JAPAN_LANGUAGE: TuiLanguage = { + name: 'japan', + ...TUI_JAPAN_LANGUAGE_CORE, + ...TUI_JAPAN_LANGUAGE_KIT, + ...TUI_JAPAN_LANGUAGE_ADDON_TABLE, + ...TUI_JAPAN_LANGUAGE_ADDON_COMMERCE, + ...TUI_JAPAN_LANGUAGE_ADDON_EDITOR, + ...TUI_JAPAN_LANGUAGE_ADDON_PREVIEW, +}; diff --git a/projects/i18n/languages/japan/kit.ts b/projects/i18n/languages/japan/kit.ts new file mode 100644 index 000000000000..97afd89828b8 --- /dev/null +++ b/projects/i18n/languages/japan/kit.ts @@ -0,0 +1,64 @@ +import {TuiLanguageKit} from '@taiga-ui/i18n/interfaces'; + +export const TUI_JAPAN_LANGUAGE_KIT: TuiLanguageKit = { + cancel: 'キャンセル', + done: '終わり', + more: 'もっと', + otherDate: 'その他の日付', + showAll: 'すべて表示する', + hide: '隠れる', + mobileCalendarTexts: ['日付を選択', '範囲を選択', '日数を選択'], + range: ['から', 'に'], + countTexts: ['プラス', 'マイナス'], + time: { + 'HH:MM': 'HH:MM', + 'HH:MM:SS': 'HH:MM:SS', + 'HH:MM:SS.MSS': 'HH:MM:SS.MSS', + }, + dateTexts: { + DMY: 'dd.mm.yyyy', + MDY: 'mm.dd.yyyy', + YMD: 'yyyy.mm.dd', + }, + digitalInformationUnits: ['B', 'KiB', 'MiB'], + passwordTexts: ['パスワードを表示', 'パスワードを隠す'], + copyTexts: ['コピー', 'コピーしました'], + shortCalendarMonths: [ + '1月', + '2月', + '3月', + '4月', + '5月', + '6月', + '7月', + '8月', + '9月', + '10月', + '11月', + '12月', + ], + pagination: ['前のページ', '次のページ'], + fileTexts: { + loadingError: 'アップロードに失敗しました', + preview: 'プレビュー', + remove: '取り除く', + }, + inputFileTexts: { + defaultLabelSingle: 'またはここにドロップしてください', + defaultLabelMultiple: 'またはここにドロップしてください', + defaultLinkSingle: 'ファイルを選択', + defaultLinkMultiple: 'ファイルを選択', + maxSizeRejectionReason: 'ファイルはより大きいです', + formatRejectionReason: 'ファイルタイプが間違っています', + drop: 'ここにファイルをドロップ', + dropMultiple: 'ここにファイルをドロップ', + }, + multiSelectTexts: { + all: 'すべて選択', + none: '何も選択しない', + }, + prompt: { + yes: 'はい', + no: 'いいえ', + }, +}; diff --git a/projects/i18n/languages/japan/ng-package.json b/projects/i18n/languages/japan/ng-package.json new file mode 100644 index 000000000000..bebf62dcb5e5 --- /dev/null +++ b/projects/i18n/languages/japan/ng-package.json @@ -0,0 +1,5 @@ +{ + "lib": { + "entryFile": "index.ts" + } +}