i18n-ally: Side-bar editor and popup editor does not work as expected

Hello,

I also have this issue ( as in refereced #469 ), but more, as the translations are not present in the workspace, only in explorer-bar… The only way to make the translation is to edit directly the json files. It actually worked prior to latest update to 2.5.7. After update it does not even if I try to downgrade to prior versions. I tryied my best to make it work but I am stucked here.

Please see attached: image

I provide the settings: settings.json (some tweeks after the update to 2.5.7 in order to make it work…) :

{ ...,
 "i18n-ally.enabledFrameworks": [
       "vscode", "react", "i18n-tag","custom"
   ],
   "i18n-ally.localesPaths": ["./public/locales", "public/locales"],
   "i18n-ally.pathMatcher": "{locale}/{namespace}.json"
}

i18n.js (this worked for two years without any change)

import i18n from 'i18next';
import Backend from 'i18next-xhr-backend';
import LanguageDetector from 'i18next-browser-languagedetector';
import { initReactI18next } from 'react-i18next';

i18n
r-backend
  .use(Backend)
  .use(LanguageDetector)
  .use(initReactI18next)
  .init({
    fallbackLng: ['en','ro'],
    whitelist: ['ro', 'en'],
    nonExplicitWhitelist: true,
    load: 'languageOnly',
    keySeparator: '.',
    debug: false,
    interpolation: {
      escapeValue: false, 
    },
    ns: ['translation'],
    defaultNS: 'translation',
    react: { 
      useSuspense: false
    },
    backend: {
      loadPath: '../locales/{{lng}}/{{ns}}.json',
      allowMultiLoading: true,
      crossDomain: true
    }
  });

export default i18n;

The output from terminal :

🈢 Activated, v2.5.7

――――――

πŸ’Ό Workspace root changed to "/var/lib/sws/engine/om0React"
🌞 Enabled
🧩 Enabled frameworks: VS Code, React, i18n Tag, Custom
🧬 Enabled parsers: json

πŸš€ Initializing loader "/var/lib/sws/engine/om0React"
πŸ“‚ Directory structure: file
πŸ—ƒ Custom Path Matcher: {locale}/{namespace}.json
πŸ—ƒ Path Matcher Regex: /^(?<locale>[\w-_]+)\/(?<namespace>[^/\\]+)\.json$/

πŸ“‚ Loading locales under /var/lib/sws/engine/om0React/public/locales
	πŸ“‘ Loading (en) en/translation.json [1619791355123.0857]
	πŸ“‘ Loading (ro) ro/translation.json [1619791379245.6006]
	πŸ“‘ Loading (se) se/translation.json [1619791399579.2483]

πŸ‘€ Watching change on /var/lib/sws/engine/om0React/public/locales
βœ… Loading finished


Please advise. Thank you.

_Originally posted by @VldMrgnn in https://github.com/lokalise/i18n-ally/issues/469#issuecomment-830568941_

About this issue

  • Original URL
  • State: open
  • Created 3 years ago
  • Reactions: 4
  • Comments: 16 (1 by maintainers)

Commits related to this issue

Most upvoted comments

And another example: image

Does this bot even work correctly? It closed the MR even though I’ve written a comment there πŸ™‚ Let’s see if it works here