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:
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)
And another example:
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