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.

stuck at `Initializing loader "..."`

See original GitHub issue

Describe the bug stuck at Initializing loader "..."

Extension Version 2.3.17

Framework/i18n package you are using react/i18next

To Reproduce Steps to reproduce the behavior:

  1. Go to ‘…’
  2. Click on ‘…’=
  3. See error

Device Infomation

  • OS: Windows
  • Version: 10
  • VS Code Version: 1.49.0

Extension Log Go to View -> Output -> i18n Ally, and paste the content below. You should mask any sensitive information

Output

🈶 Activated, v2.3.17

――――――

💼 Workspace root changed to "path/to/project_root"
🌞 Enabled
🧩 Enabled frameworks: React
🧬 Enabled parsers: json, yaml, json5

🚀 Initializing loader "path/to/project_root"

Developer Tools

stack trace: RangeError: Incorrect locale information provided
	at Object.getCanonicalLocales (<anonymous>)
	at BCP47.lookup (.././src/tagSystems/bcp47.ts:28:32)
	at eval (.././src/core/loaders/LocaleLoader.ts:138:75)
	at Array.map (<anonymous>)
	at LocaleLoader.guessDirStructure (.././src/core/loaders/LocaleLoader.ts:138:14)
	at processTicksAndRejections (internal/process/task_queues.js:94:5)
	at async LocaleLoader.init (.././src/core/loaders/LocaleLoader.ts:80:35)
	at async Function.initLoader (.././src/core/Global.ts:197:9)
	at async Function.update (.././src/core/Global.ts:276:13)

Addition

settings.json

{
  "i18n-ally.enabledFrameworks": ["react"],
  "i18n-ally.namespace": true,
  "i18n-ally.keystyle": "nested",
  "i18n-ally.localesPaths": ["packages/locales"],
  "i18n-ally.pathMatcher": "{locale}/{namespace}.json",
  "i18n-ally.sourceLanguage": "en",
  "i18n-ally.sortKeys": true,
}

project with yarn workspace

  "workspaces": [
    ...,
    "packages/*"
  ],

files under packages/locales

packages/locales/{en|zh-CN}/{namespace}.json

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
crossjscommented, Sep 14, 2020

"i18n-ally.ignoreFiles": ["node_modules/**"] resolve the problem. thanks

3reactions
crossjscommented, Sep 14, 2020

there is other folders like node_modules under locales, as node_modules is NOT a valid locale code.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Data Loader stuck at 'initializing records' - Salesforce Help
Data Loader encounters an error at the 'initializing records' stage if the CSV contains blank columns or rows. Data Loader takes a long...
Read more >
Computer Stops at "Initializing Loader" After Encrypting
1, the screen stops and "Initializing Loader" is displayed after rebooting the computer. Stage-2 Initializing Loader. Cause. This occurs when ...
Read more >
CS:GO stuck on Initializing World [Working fix]
If CSGO is stuck on the loading screen, you need to first need to make sure that the game is getting an ample...
Read more >
Data Loader stuck at Initializing Salesforce Object and CSV ...
My data loader is stuck on the screen where the header says 'Data Selection' and the body says Initializing Salesforce object and CSV...
Read more >
How to Fix CS:GO Stuck on Initializing World Issue? - Appuals
CS:GO can also get stuck at the loading screen if you do not have enough disk space to store more CS: GO game...
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