question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Side-bar editor and popup editor does not work as expected

See original GitHub issue

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_

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:4
  • Comments:16 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
VldMrgnncommented, May 4, 2021

And another example: image

1reaction
4O4commented, Feb 4, 2022

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Sidebar App popup doesn't work? - Esri Community
One issue I am finding is that if the edit is discarded, the editing crosshair does not return to the normal cursor. This...
Read more >
Bug #1305451 “Content editor sidebar doesn't work on Chrome ...
Go to Edit content -tab 3. Click on Text box Expected result: "Add block: Text box" -popup appears. Actual result: Nothing happens. In...
Read more >
javascript - Custom Editor of Grid does not work as expected - Stack ...
I am using grids popup editor to edit the grid row. in that I am using custom editor (DropDown control) for some of...
Read more >
Product editor sidebar not working - WordPress.org
To be sure of this, as a first step, please perform a conflict test by temporarily switching your theme back to Storefront, disabling...
Read more >
"How to Edit" sidebar shows up in wrong, awkward place when ...
When improving a suggested edit from the Q&A page itself (as opposed to from the review queue), the sidebar widget is positioned awkwardly,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found