Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strip interpolation #5

Open
Leko opened this issue Aug 8, 2021 · 1 comment
Open

Strip interpolation #5

Leko opened this issue Aug 8, 2021 · 1 comment

Comments

@Leko
Copy link
Owner

Leko commented Aug 8, 2021

Minimum reproducible text

{
  "ja": {
    "x": "{browser}ブラウザ"
  }
}

Minimum reproducible Textlint config

{
  "rules": {
    "@textlint-ja/no-synonyms": {
      "allowAlphabet": false
    }
  },
  "plugins": {
    "textlint-plugin-vue-i18n": {
      "locales": ["ja"]
    }
  }
}

(Unexpected) Error

error  同義語である「browser」と「ブラウザ」が利用されています       @textlint-ja/no-synonyms

Expected behavior

No error

@Leko
Copy link
Owner Author

Leko commented Aug 8, 2021

Currently, we recognize {browser} as text. We must ignore the syntax even if there's a textlint error in it as to fix the error may lead to a bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant