lokalise / i18n-ally

🌍 All in one i18n extension for VS Code
https://marketplace.visualstudio.com/items?itemName=lokalise.i18n-ally
MIT License
4k stars 323 forks source link

Jetbrains plugin does not detect multiple locales in React project #808

Open azuken opened 2 years ago

azuken commented 2 years ago

Describe the bug When I configure (automatically or manually) in a React project i18n-ally plugin in IntelliJ Ultimate or Webstorm, it works with default locale set, but does not detect other locales.

Extension Version i18n Ally 1.4.1.3

Framework/i18n package you are using react-i18next

To Reproduce

{
  "version" : "1.2",
  "profiles" : [ {
    "id" : "ca5f2354-d76a-4f1c-8c8c-63e0ecea3373",
    "name" : "React",
    "keyNamingPattern" : "CAMEL_CASE_PATTERN",
    "sink" : {
      "id" : "e332e161-7b99-4d06-9470-c9ffd792069f",
      "type" : "namespaced",
      "translationsDirectory" : "$PROJECT_DIR$/public/locales",
      "fileType" : "json",
      "defaultLocale" : "fr-FR",
      "namespaces" : [ "translation" ],
      "outputFilenameTemplate" : "%locale%/%namespace%.json",
      "nestingType" : "DOT",
      "placeholderFormatterName" : "I18NEXT"
    },
    "sources" : [ {
      "id" : "89851f9e-2339-4b4a-be04-48932bb3b120",
      "type" : "jsx",
      "scopeName" : "Project Files",
      "scopePattern" : "",
      "defaultReplacementTemplate" : "t('%key%', %map%, '%namespace%')",
      "attributeReplacementTemplate" : "",
      "inlineTagsReplacementTemplate" : "",
      "recognizedReplacementTemplates" : [ ],
      "inlineTagNames" : [ "small", "tt", "big", "sub", "img", "strong", "code", "data", "samp", "wbr", "del", "slot", "sup", "br", "output", "abbr", "a", "b", "acronym", "bdi", "meter", "var", "em", "i", "label", "bdo", "kbd", "dfn", "ins", "ruby", "input", "q", "s", "u", "cite", "progress", "time", "mark", "span" ],
      "translatableAttributeNames" : [ "alt", "placeholder", "label", "title", "aria-label" ],
      "skipDefaultNamespace" : true,
      "inlineTagHandler" : "I18NEXT"
    } ]
  } ],
  "ignores" : {
    "valuesInProject" : [ "use strict" ],
    "valuesInFile" : { },
    "filesInProject" : [ ],
    "unignoredFunctionNames" : [ ],
    "unignoredFunctionArguments" : { },
    "ignoredArrayKeys" : [ "template", "date", "dateFormat", "el", "query", "type", "sql", "layout", "component", "condition", "name", "selector", "id", "class", "key", "middleware" ]
  }
}

Device Infomation

Extension Log No such option found in View menu.

Screenshots

Capture d’écran 2022-09-21 à 14 51 26 Capture d’écran 2022-09-21 à 14 51 36

My translation folder :

image

Igosuki commented 2 years ago

Same problem here, so I have to rely on typescript rather than i18n ally

oyatek commented 1 year ago

same