You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When using the editor command "i18n Ally: Manually configure locales path" wrong paths are written to i18n-ally.localesPaths in .vscode/settings.json. I.e. src\\locale is written instead of src/locale, making the extension fail at detecting locales.
Actually I think that the bug is rather that the extension doesn't support windows paths coming from settings.json file. As soon as I replace \\ for / in the path written by the "i18n Ally: Manually configure locales path" command , everything works again.
Extension Version
lokalise.i18n-ally v2.4.20
Framework/i18n package you are using
Angular 11 + ngx-translate 13.0.0
To Reproduce
Steps to reproduce the behavior:
For instance suppose my project locales are under src/locale, so that my .vscode/settings.json file looks like this (default locale location):
i18n-ally.localesPaths": [
"src/locale"
]
Now let's say I want to add another locales folder, src/i18n ,so I do (under Windows) Ctrl+Shift+P and run "i18n Ally: Manually configure locales path". After that, .vscode/settings.json looks like this:
Describe the bug
When using the editor command "i18n Ally: Manually configure locales path" wrong paths are written to
i18n-ally.localesPaths
in.vscode/settings.json
. I.e.src\\locale
is written instead ofsrc/locale
, making the extension fail at detecting locales.Actually I think that the bug is rather that the extension doesn't support windows paths coming from settings.json file. As soon as I replace
\\
for/
in the path written by the "i18n Ally: Manually configure locales path" command , everything works again.Extension Version
lokalise.i18n-ally v2.4.20
Framework/i18n package you are using
Angular 11 + ngx-translate 13.0.0
To Reproduce
Steps to reproduce the behavior:
src/locale
, so that my .vscode/settings.json file looks like this (default locale location):src/i18n
,so I do (under Windows)Ctrl+Shift+P
and run "i18n Ally: Manually configure locales path". After that,.vscode/settings.json
looks like this:\\
for/
and everything works as expected.Device Infomation
Extension Log
The text was updated successfully, but these errors were encountered: