فهرست منبع

adding expranation

kaori 4 سال پیش
والد
کامیت
a3ace94ac5
1فایلهای تغییر یافته به همراه50 افزوده شده و 2 حذف شده
  1. 50 2
      packages/app/src/components/Me/EditorSettings.tsx

+ 50 - 2
packages/app/src/components/Me/EditorSettings.tsx

@@ -1,6 +1,5 @@
 import React, { FC } from 'react';
 import React, { FC } from 'react';
 import { useTranslation } from 'react-i18next';
 import { useTranslation } from 'react-i18next';
-import PropTypes from 'prop-types';
 
 
 
 
 type Props = {
 type Props = {
@@ -20,8 +19,8 @@ export const WithoutJapaneseTextLintRulesSettings: FC<Props> = () => {
 
 
 
 
 export const EditorSettings: FC<Props> = () => {
 export const EditorSettings: FC<Props> = () => {
+  // TODO: apply i18n by GW-7244
   const { t } = useTranslation();
   const { t } = useTranslation();
-  // TODO: apply i18n byGW-7244
 
 
   return (
   return (
     <>
     <>
@@ -41,6 +40,9 @@ export const EditorSettings: FC<Props> = () => {
             <label className="custom-control-label" htmlFor="ja-hiragana-keishikimeishi">
             <label className="custom-control-label" htmlFor="ja-hiragana-keishikimeishi">
               <strong>ja-hiragana-keishikimeishi</strong>
               <strong>ja-hiragana-keishikimeishi</strong>
             </label>
             </label>
+            <p className="form-text text-muted small">
+              Textlint rules to check easy-to-read Keishikimeishi(pronouns) written in Hiragana than Kanji.
+            </p>
           </div>
           </div>
 
 
           <div className="custom-control custom-switch custom-checkbox-success">
           <div className="custom-control custom-switch custom-checkbox-success">
@@ -54,6 +56,9 @@ export const EditorSettings: FC<Props> = () => {
             <label className="custom-control-label" htmlFor="ja-no-abusage">
             <label className="custom-control-label" htmlFor="ja-no-abusage">
               <strong>ja-no-abusage</strong>
               <strong>ja-no-abusage</strong>
             </label>
             </label>
+            <p className="form-text text-muted small">
+              Textlint rules to check for common misuse
+            </p>
           </div>
           </div>
 
 
           <div className="custom-control custom-switch custom-checkbox-success">
           <div className="custom-control custom-switch custom-checkbox-success">
@@ -67,6 +72,9 @@ export const EditorSettings: FC<Props> = () => {
             <label className="custom-control-label" htmlFor="ja-no-inappropriate-words">
             <label className="custom-control-label" htmlFor="ja-no-inappropriate-words">
               <strong>ja-no-inappropriate-words</strong>
               <strong>ja-no-inappropriate-words</strong>
             </label>
             </label>
+            <p className="form-text text-muted small">
+              Textlint rule to check for inappropriate expressions
+            </p>
           </div>
           </div>
 
 
           <div className="custom-control custom-switch custom-checkbox-success">
           <div className="custom-control custom-switch custom-checkbox-success">
@@ -80,6 +88,9 @@ export const EditorSettings: FC<Props> = () => {
             <label className="custom-control-label" htmlFor="ja-no-mixed-period">
             <label className="custom-control-label" htmlFor="ja-no-mixed-period">
               <strong>ja-no-mixed-period</strong>
               <strong>ja-no-mixed-period</strong>
             </label>
             </label>
+            <p className="form-text text-muted small">
+              A rule to check that a paragraph always has a punctuation mark at the end
+            </p>
           </div>
           </div>
 
 
           <div className="custom-control custom-switch custom-checkbox-success">
           <div className="custom-control custom-switch custom-checkbox-success">
@@ -93,6 +104,10 @@ export const EditorSettings: FC<Props> = () => {
             <label className="custom-control-label" htmlFor="ja-no-redundant-expression">
             <label className="custom-control-label" htmlFor="ja-no-redundant-expression">
               <strong>ja-no-redundant-expression</strong>
               <strong>ja-no-redundant-expression</strong>
             </label>
             </label>
+            <p className="form-text text-muted small">
+              A textlint rule that prohibits redundant expressions.
+              Redundant expressions are expressions that make sense even if they are omitted from the sentence.
+            </p>
           </div>
           </div>
 
 
           <div className="custom-control custom-switch custom-checkbox-success">
           <div className="custom-control custom-switch custom-checkbox-success">
@@ -106,6 +121,9 @@ export const EditorSettings: FC<Props> = () => {
             <label className="custom-control-label" htmlFor="max-kanji-continuous-len">
             <label className="custom-control-label" htmlFor="max-kanji-continuous-len">
               <strong>max-kanji-continuous-len</strong>
               <strong>max-kanji-continuous-len</strong>
             </label>
             </label>
+            <p className="form-text text-muted small">
+              {t('admin:app_setting.file_delivery_method_redirect_info')}
+            </p>
           </div>
           </div>
 
 
           <div className="custom-control custom-switch custom-checkbox-success">
           <div className="custom-control custom-switch custom-checkbox-success">
@@ -119,6 +137,9 @@ export const EditorSettings: FC<Props> = () => {
             <label className="custom-control-label" htmlFor="max-ten">
             <label className="custom-control-label" htmlFor="max-ten">
               <strong>max-ten</strong>
               <strong>max-ten</strong>
             </label>
             </label>
+            <p className="form-text text-muted small">
+              textlint rule is that limit maximum ten(、) count of sentence.
+            </p>
           </div>
           </div>
 
 
           <div className="custom-control custom-switch custom-checkbox-success">
           <div className="custom-control custom-switch custom-checkbox-success">
@@ -132,6 +153,9 @@ export const EditorSettings: FC<Props> = () => {
             <label className="custom-control-label" htmlFor="no-double-negative-ja">
             <label className="custom-control-label" htmlFor="no-double-negative-ja">
               <strong>no-double-negative-ja</strong>
               <strong>no-double-negative-ja</strong>
             </label>
             </label>
+            <p className="form-text text-muted small">
+              A textlint rule that detects double negation.
+            </p>
           </div>
           </div>
 
 
           <div className="custom-control custom-switch custom-checkbox-success">
           <div className="custom-control custom-switch custom-checkbox-success">
@@ -145,6 +169,9 @@ export const EditorSettings: FC<Props> = () => {
             <label className="custom-control-label" htmlFor="no-doubled-conjunction">
             <label className="custom-control-label" htmlFor="no-doubled-conjunction">
               <strong>no-doubled-conjunction</strong>
               <strong>no-doubled-conjunction</strong>
             </label>
             </label>
+            <p className="form-text text-muted small">
+              This module is a textlint plugin to check duplicated same conjunctions.
+            </p>
           </div>
           </div>
 
 
           <div className="custom-control custom-switch custom-checkbox-success">
           <div className="custom-control custom-switch custom-checkbox-success">
@@ -158,6 +185,9 @@ export const EditorSettings: FC<Props> = () => {
             <label className="custom-control-label" htmlFor="no-doubled-joshi">
             <label className="custom-control-label" htmlFor="no-doubled-joshi">
               <strong>no-doubled-joshi</strong>
               <strong>no-doubled-joshi</strong>
             </label>
             </label>
+            <p className="form-text text-muted small">
+              A textlint rule that checks that the same particle appears consecutively in one sentence.
+            </p>
           </div>
           </div>
 
 
           <div className="custom-control custom-switch custom-checkbox-success">
           <div className="custom-control custom-switch custom-checkbox-success">
@@ -171,6 +201,9 @@ export const EditorSettings: FC<Props> = () => {
             <label className="custom-control-label" htmlFor="no-dropping-the-ra">
             <label className="custom-control-label" htmlFor="no-dropping-the-ra">
               <strong>no-dropping-the-ra</strong>
               <strong>no-dropping-the-ra</strong>
             </label>
             </label>
+            <p className="form-text text-muted small">
+              A textlint rule that disallow to use Half-width kana.
+            </p>
           </div>
           </div>
 
 
           <div className="custom-control custom-switch custom-checkbox-success">
           <div className="custom-control custom-switch custom-checkbox-success">
@@ -184,6 +217,9 @@ export const EditorSettings: FC<Props> = () => {
             <label className="custom-control-label" htmlFor="no-hankaku-kana">
             <label className="custom-control-label" htmlFor="no-hankaku-kana">
               <strong>no-hankaku-kana</strong>
               <strong>no-hankaku-kana</strong>
             </label>
             </label>
+            <p className="form-text text-muted small">
+              A textlint rule that checks tari tari.
+            </p>
           </div>
           </div>
 
 
           <div className="custom-control custom-switch custom-checkbox-success">
           <div className="custom-control custom-switch custom-checkbox-success">
@@ -197,6 +233,9 @@ export const EditorSettings: FC<Props> = () => {
             <label className="custom-control-label" htmlFor="prefer-tari-tari">
             <label className="custom-control-label" htmlFor="prefer-tari-tari">
               <strong>prefer-tari-tari</strong>
               <strong>prefer-tari-tari</strong>
             </label>
             </label>
+            <p className="form-text text-muted small">
+              {t('admin:app_setting.file_delivery_method_redirect_info')}
+            </p>
           </div>
           </div>
 
 
           <div className="row my-3">
           <div className="row my-3">
@@ -227,6 +266,9 @@ export const EditorSettings: FC<Props> = () => {
             <label className="custom-control-label" htmlFor="common-misspellings">
             <label className="custom-control-label" htmlFor="common-misspellings">
               <strong>common-misspellings</strong>
               <strong>common-misspellings</strong>
             </label>
             </label>
+            <p className="form-text text-muted small">
+              {t('admin:app_setting.file_delivery_method_redirect_info')}
+            </p>
           </div>
           </div>
 
 
           <div className="custom-control custom-switch custom-checkbox-success">
           <div className="custom-control custom-switch custom-checkbox-success">
@@ -240,6 +282,9 @@ export const EditorSettings: FC<Props> = () => {
             <label className="custom-control-label" htmlFor="max-comma">
             <label className="custom-control-label" htmlFor="max-comma">
               <strong>max-comma</strong>
               <strong>max-comma</strong>
             </label>
             </label>
+            <p className="form-text text-muted small">
+              {t('admin:app_setting.file_delivery_method_redirect_info')}
+            </p>
           </div>
           </div>
 
 
           <div className="custom-control custom-switch custom-checkbox-success">
           <div className="custom-control custom-switch custom-checkbox-success">
@@ -253,6 +298,9 @@ export const EditorSettings: FC<Props> = () => {
             <label className="custom-control-label" htmlFor="sentence-length">
             <label className="custom-control-label" htmlFor="sentence-length">
               <strong>sentence-length</strong>
               <strong>sentence-length</strong>
             </label>
             </label>
+            <p className="form-text text-muted small">
+              {t('admin:app_setting.file_delivery_method_redirect_info')}
+            </p>
           </div>
           </div>
 
 
           <div className="row my-3">
           <div className="row my-3">