Explorar el Código

Apply i18n (Japanese)

satof3 hace 9 meses
padre
commit
7c77f1773a

+ 20 - 2
apps/app/public/static/locales/ja_JP/translation.json

@@ -512,9 +512,27 @@
       "Search in Editor": "エディター内検索",
       "Move Line": "行の移動",
       "Copy Line": "行のコピー",
-      "Toggle Line": "行の非表示化",
       "Insert Line": "行を挿入",
-      "Post Comment": "(コメント投稿)"
+      "Post Comment": "(コメント投稿)",
+      "Multiple Cursors": "複数カーソル",
+      "Or Alt Click": "もしくは Alt + クリック"
+    },
+    "format": {
+      "title": "書式設定 (エディター)",
+      "Bold": "太字",
+      "Italic": "斜体",
+      "Strikethrough": "取り消し線",
+      "Code Text": "コードテキスト",
+      "Hyperlink": "ハイパーリンク"
+    },
+    "line_settings": {
+      "title": "行の設定 (エディター)",
+      "Bullet List": "箇条書きリスト",
+      "Numbered List": "番号付きリスト",
+      "Quote": "引用",
+      "Code Block": "コードブロック",
+      "Comment Out": "非表示にする",
+      "Comment Out Desc": "(コメントアウト)"
     }
   },
   "modal_resolve_conflict": {

+ 15 - 15
apps/app/src/client/components/ShortcutsModal.tsx

@@ -237,7 +237,7 @@ const ShortcutsModal = (): JSX.Element => {
               {/* Multiple Cursors */}
               <li className="d-flex align-items-center p-3">
                 <div className="flex-grow-1">
-                  複数カーソル
+                  {t('modal_shortcuts.editor.Multiple Cursors')}
                 </div>
                 <div className="text-nowrap">
                   <div className="text-end">
@@ -252,7 +252,7 @@ const ShortcutsModal = (): JSX.Element => {
                       <span className="text-secondary mx-2">or</span>
                       <span className="key material-symbols-outlined fs-5 px-0">arrow_upward</span>
                     </div>
-                    <span className="small text-secondary">もしくは Alt + クリック</span>
+                    <span className="small text-secondary">{t('modal_shortcuts.editor.Or Alt Click')}</span>
 
                   </div>
                 </div>
@@ -265,12 +265,12 @@ const ShortcutsModal = (): JSX.Element => {
         <div className="row mt-4">
           <div className="col-lg-6">
             <h6>
-              <strong>書式設定 (エディター)</strong>
+              <strong>{t('modal_shortcuts.format.title')}</strong>
             </h6>
             <ul className="list-unstyled m-0">
               {/* Bold */}
               <li className="d-flex align-items-center p-3 border-bottom">
-                <div className="flex-grow-1">太字</div>
+                <div className="flex-grow-1">{t('modal_shortcuts.format.Bold')}</div>
                 <div className="text-nowrap">
                   <span className={`key cmd-key ${additionalClassByOs}`}></span>
                   <span className="text-secondary mx-2">+</span>
@@ -279,7 +279,7 @@ const ShortcutsModal = (): JSX.Element => {
               </li>
               {/* Italic */}
               <li className="d-flex align-items-center p-3 border-bottom">
-                <div className="flex-grow-1">斜体</div>
+                <div className="flex-grow-1">{t('modal_shortcuts.format.Italic')}</div>
                 <div className="text-nowrap">
                   <span className={`key cmd-key ${additionalClassByOs}`}></span>
                   <span className="text-secondary mx-2">+</span>
@@ -290,7 +290,7 @@ const ShortcutsModal = (): JSX.Element => {
               </li>
               {/* Strikethrough */}
               <li className="d-flex align-items-center p-3 border-bottom">
-                <div className="flex-grow-1">取り消し線</div>
+                <div className="flex-grow-1">{t('modal_shortcuts.format.Strikethrough')}</div>
                 <div className="text-nowrap">
                   <span className={`key cmd-key ${additionalClassByOs}`}></span>
                   <span className="text-secondary mx-2">+</span>
@@ -301,7 +301,7 @@ const ShortcutsModal = (): JSX.Element => {
               </li>
               {/* Code Text */}
               <li className="d-flex align-items-center p-3 border-bottom">
-                <div className="flex-grow-1">コードテキスト</div>
+                <div className="flex-grow-1">{t('modal_shortcuts.format.Code Text')}</div>
                 <div className="text-nowrap">
                   <span className={`key cmd-key ${additionalClassByOs}`}></span>
                   <span className="text-secondary mx-2">+</span>
@@ -312,7 +312,7 @@ const ShortcutsModal = (): JSX.Element => {
               </li>
               {/* Hyperlink */}
               <li className="d-flex align-items-center p-3">
-                <div className="flex-grow-1">ハイパーリンク</div>
+                <div className="flex-grow-1">{t('modal_shortcuts.format.Hyperlink')}</div>
                 <div className="text-nowrap">
                   <span className={`key cmd-key ${additionalClassByOs}`}></span>
                   <span className="text-secondary mx-2">+</span>
@@ -326,12 +326,12 @@ const ShortcutsModal = (): JSX.Element => {
 
           <div className="col-lg-6">
             <h6>
-              <strong>行の設定 (エディター)</strong>
+              <strong>{t('modal_shortcuts.line_settings.title')}</strong>
             </h6>
             <ul className="list-unstyled m-0">
               {/* Simple List */}
               <li className="d-flex align-items-center p-3 border-bottom">
-                <div className="flex-grow-1">箇条書きリスト</div>
+                <div className="flex-grow-1">{t('modal_shortcuts.line_settings.Bullet List')}</div>
                 <div className="text-nowrap">
                   <span className={`key cmd-key ${additionalClassByOs}`}></span>
                   <span className="text-secondary mx-2">+</span>
@@ -342,7 +342,7 @@ const ShortcutsModal = (): JSX.Element => {
               </li>
               {/* Numbered List */}
               <li className="d-flex align-items-center p-3 border-bottom">
-                <div className="flex-grow-1">番号付きリスト</div>
+                <div className="flex-grow-1">{t('modal_shortcuts.line_settings.Numbered List')}</div>
                 <div className="text-nowrap">
                   <span className={`key cmd-key ${additionalClassByOs}`}></span>
                   <span className="text-secondary mx-2">+</span>
@@ -353,7 +353,7 @@ const ShortcutsModal = (): JSX.Element => {
               </li>
               {/* Quote */}
               <li className="d-flex align-items-center p-3 border-bottom">
-                <div className="flex-grow-1">引用</div>
+                <div className="flex-grow-1">{t('modal_shortcuts.line_settings.Quote')}</div>
                 <div className="text-nowrap">
                   <span className={`key cmd-key ${additionalClassByOs}`}></span>
                   <span className="text-secondary mx-2">+</span>
@@ -364,7 +364,7 @@ const ShortcutsModal = (): JSX.Element => {
               </li>
               {/* Code Block */}
               <li className="d-flex align-items-center p-3 border-bottom">
-                <div className="flex-grow-1">コードブロック</div>
+                <div className="flex-grow-1">{t('modal_shortcuts.line_settings.Code Block')}</div>
                 <div className="text-nowrap">
                   <div className="text-start">
                     <div>
@@ -384,8 +384,8 @@ const ShortcutsModal = (): JSX.Element => {
               {/* Hide comments */}
               <li className="d-flex align-items-center p-3">
                 <div className="flex-grow-1">
-                  非表示にする<br />
-                  <span className="small text-secondary">(コメントアウト)</span>
+                  {t('modal_shortcuts.line_settings.Comment Out')}<br />
+                  <span className="small text-secondary">{t('modal_shortcuts.line_settings.Comment Out Desc')}</span>
                 </div>
                 <div className="text-nowrap">
                   <span className={`key cmd-key ${additionalClassByOs}`}></span>