Describe the bug
I've just installed the extension from VS Code's Marketplace and was testing it on a server.js file.
The detecting hard-coded strings feature detected 3 strings that should not be translated and ignored the one within a console.log() call, but that wasn't exactly an issue for me. The issue was when I tried to ignore the three "faulty" hard-coded strings detected: the ignore function only worked for the first string (after attempting it twice on the same string) and didn't do a thing to the other two, no matter how many times I tried.
It only worked after I manually added the strings to ignore in the settings.json file.
Another thing I've noticed while trying to figure this one out is that ignoring globally also requires two attempts per string to work, but this time it registers two at once for every ignored string.
Extension Version
i18n Ally (v2.13.1)
Framework/i18n package you are using
general
To Reproduce
Steps to reproduce the behavior:
- Input a hard-coded string
- Open the Quick Fix menu
- Select 'Ignore detection "..." for current file'
- You will see that it does not work from the first time
- Attemp again to ignore string successfully
- Add a new hard-coded string
- Attempt ignoring, once, ttwice, thrice, etc...
- You will ssee that it is not working at all
- Open the Quick Fix menu
- Choose the 'Ignore detection "..." globally' option
- You will see that the ignore does not work from the first time
- Attempt again for the isgnore to be successful
- Open the workspace's settings.json file
- You will see that for each globally ignored string, the registration happens twice
Device Information
- OS: MacOS
- Version: Sequoia 15.7.2
- VS Code Version: 1.108.2 (Universal)
Extension Log
πΆ Activated, v2.13.1
ββββββ
πΌ Workspace root changed to "/Users/.../(root folder)"
π Enabled
π§© Enabled frameworks: General, Custom
𧬠Enabled parsers: json
π Telemetry id: 6e763663-ce01-47ac-bc80-8e2f7cc26d6c
π Initializing loader "/Users/.../(root folder)"
π Directory structure: file
π Path Matcher Regex: /^(?[\w-_]+).(?json)$/
π Loading locales under /Users/.../(root folder)/Localization
π Loading (en) en.json [1770129034020.9534]
π Watching change on /Users/.../(root folder)/Localization
β
Loading finished
ββββββ
π§° Config "i18n-ally.namespace" changed, reloading
π Reloading loader
π§© Enabled frameworks: General, Custom
𧬠Enabled parsers: json
π Initializing loader "/Users/.../(root folder)"
π Directory structure: file
π Path Matcher Regex: /^(?[\w-_]+).(?json)$/
π Loading locales under /Users/.../(root folder)/Localization
π Loading (en) en.json [1770129034020.9534]
π Watching change on /Users/.../(root folder)/Localization
β
Loading finished
ββββββ
π€ Bulk extracting
/Users/.../(root folder)/Utils/server.js
π€ Extracting [2] /Users/.../(root folder)/Utils/server.js
πΎ Writing /Users/.../(root folder)/Localization/en.json
β
Loading finished
π File changed (change) en.json
π Perfroming a full reload
π Loading locales under /Users/.../(root folder)/Localization
π File changed (change) en.json
π Perfroming a full reload
π Loading locales under /Users/.../(root folder)/Localization
π Loading (en) en.json [1770135372765.993]
π Loading (en) en.json [1770135372765.993]
β
Loading finished
β
Loading finished
π File changed (change) en.json
π Perfroming a full reload
π Loading locales under /Users/.../(root folder)/Localization
π File changed (change) en.json
π Perfroming a full reload
π Loading locales under /Users/.../(root folder)/Localization
π Loading (en) en.json [1770136988664.768]
π Loading (en) en.json [1770136988664.768]
β
Loading finished
β
Loading finished
πΎ Writing /Users/.../(root folder)/Localization/en.json
β
Loading finished
π File changed (change) en.json
π Perfroming a full reload
π Loading locales under /Users/.../(root folder)/Localization
π File changed (change) en.json
π Perfroming a full reload
π Loading locales under /Users/.../(root folder)/Localization
π Loading (en) en.json [1770137491709.6777]
π Loading (en) en.json [1770137491709.6777]
β
Loading finished
β
Loading finished
π File changed (change) en.json
π Perfroming a full reload
π Loading locales under /Users/.../(root folder)/Users/.../(root folder)/Localization
π File changed (change) en.json
π Perfroming a full reload
π Loading locales under /Users/.../(root folder)/Localization
π Loading (en) en.json [1770137505954.99]
π Loading (en) en.json [1770137505954.99]
β
Loading finished
β
Loading finished
π§° Config "i18n-ally.ignoreFiles" changed, reloading
π Reloading loader
π§© Enabled frameworks: General, Custom
𧬠Enabled parsers: json
π Initializing loader "/Users/.../(root folder)"
π Directory structure: file
π Path Matcher Regex: /^(?[\w-_]+).(?json)$/
π Loading locales under /Users/.../(root folder)/Localization
π Loading (en) en.json [1770137505954.99]
π Watching change on /Users/.../(root folder)/Localization
β
Loading finished
ββββββ
π§° Config "i18n-ally.ignoreFiles" changed, reloading
π Reloading loader
π§© Enabled frameworks: General, Custom
𧬠Enabled parsers: json
π Initializing loader "/Users/.../(root folder)"
π Directory structure: file
π Path Matcher Regex: /^(?[\w-_]+).(?json)$/
π Loading locales under /Users/.../(root folder)/Localization
π Loading (en) en.json [1770137505954.99]
π Watching change on /Users/.../(root folder)/Localization
β
Loading finished
ββββββ
π§° Config "i18n-ally.enabledFrameworks" changed, reloading
π Reloading loader
π§© Enabled frameworks: General
𧬠Enabled parsers: json
π Initializing loader "/Users/.../(root folder)"
π Directory structure: file
π Path Matcher Regex: /^(?[\w-_]+).(?json)$/
π Loading locales under /Users/.../(root folder)/Localization
π Loading (en) en.json [1770137505954.99]
π Watching change on /Users/.../(root folder)/Localization
β
Loading finished
ββββββ
π§° Config "i18n-ally.ignoreFiles" changed, reloading
π Reloading loader
π§© Enabled frameworks: General
𧬠Enabled parsers: json
π Initializing loader "/Users/.../(root folder)"
π Directory structure: file
π Path Matcher Regex: /^(?[\w-_]+).(?json)$/
π Loading locales under /Users/.../(root folder)/Localization
π Loading (en) en.json [1770137505954.99]
π Watching change on /Users/.../(root folder)/Localization
β
Loading finished
ββββββ
π§° Config "i18n-ally.ignoreFiles" changed, reloading
π Reloading loader
π§© Enabled frameworks: General
𧬠Enabled parsers: json
π Initializing loader "/Users/.../(root folder)"
π Directory structure: file
π Path Matcher Regex: /^(?[\w-_]+).(?json)$/
π Loading locales under /Users/.../(root folder)/Localization
π Loading (en) en.json [1770137505954.99]
π Watching change on /Users/.../(root folder)/Localization
β
Loading finished
ββββββ
Describe the bug
I've just installed the extension from VS Code's Marketplace and was testing it on a server.js file.
The detecting hard-coded strings feature detected 3 strings that should not be translated and ignored the one within a console.log() call, but that wasn't exactly an issue for me. The issue was when I tried to ignore the three "faulty" hard-coded strings detected: the ignore function only worked for the first string (after attempting it twice on the same string) and didn't do a thing to the other two, no matter how many times I tried.
It only worked after I manually added the strings to ignore in the settings.json file.
Another thing I've noticed while trying to figure this one out is that ignoring globally also requires two attempts per string to work, but this time it registers two at once for every ignored string.
Extension Version
i18n Ally (v2.13.1)
Framework/i18n package you are using
general
To Reproduce
Steps to reproduce the behavior:
Device Information
Extension Log
πΆ Activated, v2.13.1
ββββββ
πΌ Workspace root changed to "/Users/.../(root folder)"
π Enabled
π§© Enabled frameworks: General, Custom
𧬠Enabled parsers: json
π Telemetry id: 6e763663-ce01-47ac-bc80-8e2f7cc26d6c
π Initializing loader "/Users/.../(root folder)"
π Directory structure: file
π Path Matcher Regex: /^(?[\w-_]+).(?json)$/
π Loading locales under /Users/.../(root folder)/Localization
π Loading (en) en.json [1770129034020.9534]
π Watching change on /Users/.../(root folder)/Localization
β Loading finished
ββββββ
π§° Config "i18n-ally.namespace" changed, reloading
π Reloading loader
π§© Enabled frameworks: General, Custom
𧬠Enabled parsers: json
π Initializing loader "/Users/.../(root folder)"
π Directory structure: file
π Path Matcher Regex: /^(?[\w-_]+).(?json)$/
π Loading locales under /Users/.../(root folder)/Localization
π Loading (en) en.json [1770129034020.9534]
π Watching change on /Users/.../(root folder)/Localization
β Loading finished
ββββββ
π€ Bulk extracting
/Users/.../(root folder)/Utils/server.js
π€ Extracting [2] /Users/.../(root folder)/Utils/server.js
πΎ Writing /Users/.../(root folder)/Localization/en.json
β Loading finished
π File changed (change) en.json
π Perfroming a full reload
π Loading locales under /Users/.../(root folder)/Localization
π File changed (change) en.json
π Perfroming a full reload
π Loading locales under /Users/.../(root folder)/Localization
π Loading (en) en.json [1770135372765.993]
π Loading (en) en.json [1770135372765.993]
β Loading finished
β Loading finished
π File changed (change) en.json
π Perfroming a full reload
π Loading locales under /Users/.../(root folder)/Localization
π File changed (change) en.json
π Perfroming a full reload
π Loading locales under /Users/.../(root folder)/Localization
π Loading (en) en.json [1770136988664.768]
π Loading (en) en.json [1770136988664.768]
β Loading finished
β Loading finished
πΎ Writing /Users/.../(root folder)/Localization/en.json
β Loading finished
π File changed (change) en.json
π Perfroming a full reload
π Loading locales under /Users/.../(root folder)/Localization
π File changed (change) en.json
π Perfroming a full reload
π Loading locales under /Users/.../(root folder)/Localization
π Loading (en) en.json [1770137491709.6777]
π Loading (en) en.json [1770137491709.6777]
β Loading finished
β Loading finished
π File changed (change) en.json
π Perfroming a full reload
π Loading locales under /Users/.../(root folder)/Users/.../(root folder)/Localization
π File changed (change) en.json
π Perfroming a full reload
π Loading locales under /Users/.../(root folder)/Localization
π Loading (en) en.json [1770137505954.99]
π Loading (en) en.json [1770137505954.99]
β Loading finished
β Loading finished
π§° Config "i18n-ally.ignoreFiles" changed, reloading
π Reloading loader
π§© Enabled frameworks: General, Custom
𧬠Enabled parsers: json
π Initializing loader "/Users/.../(root folder)"
π Directory structure: file
π Path Matcher Regex: /^(?[\w-_]+).(?json)$/
π Loading locales under /Users/.../(root folder)/Localization
π Loading (en) en.json [1770137505954.99]
π Watching change on /Users/.../(root folder)/Localization
β Loading finished
ββββββ
π§° Config "i18n-ally.ignoreFiles" changed, reloading
π Reloading loader
π§© Enabled frameworks: General, Custom
𧬠Enabled parsers: json
π Initializing loader "/Users/.../(root folder)"
π Directory structure: file
π Path Matcher Regex: /^(?[\w-_]+).(?json)$/
π Loading locales under /Users/.../(root folder)/Localization
π Loading (en) en.json [1770137505954.99]
π Watching change on /Users/.../(root folder)/Localization
β Loading finished
ββββββ
π§° Config "i18n-ally.enabledFrameworks" changed, reloading
π Reloading loader
π§© Enabled frameworks: General
𧬠Enabled parsers: json
π Initializing loader "/Users/.../(root folder)"
π Directory structure: file
π Path Matcher Regex: /^(?[\w-_]+).(?json)$/
π Loading locales under /Users/.../(root folder)/Localization
π Loading (en) en.json [1770137505954.99]
π Watching change on /Users/.../(root folder)/Localization
β Loading finished
ββββββ
π§° Config "i18n-ally.ignoreFiles" changed, reloading
π Reloading loader
π§© Enabled frameworks: General
𧬠Enabled parsers: json
π Initializing loader "/Users/.../(root folder)"
π Directory structure: file
π Path Matcher Regex: /^(?[\w-_]+).(?json)$/
π Loading locales under /Users/.../(root folder)/Localization
π Loading (en) en.json [1770137505954.99]
π Watching change on /Users/.../(root folder)/Localization
β Loading finished
ββββββ
π§° Config "i18n-ally.ignoreFiles" changed, reloading
π Reloading loader
π§© Enabled frameworks: General
𧬠Enabled parsers: json
π Initializing loader "/Users/.../(root folder)"
π Directory structure: file
π Path Matcher Regex: /^(?[\w-_]+).(?json)$/
π Loading locales under /Users/.../(root folder)/Localization
π Loading (en) en.json [1770137505954.99]
π Watching change on /Users/.../(root folder)/Localization
β Loading finished
ββββββ