-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
not working with .arb file JSON Error #255
Comments
Hi @DionJChapman, Position is not line is number of characters in all document. |
Hi Bad escaped character in JSON at position 4068 all that seems to be there is "couldn't" Link to files https://www.dropbox.com/sh/t0khuj73i42w3id/AABt7ImyjfMtjjVZ8WJ8OrhGa?dl=0 |
Replace |
You are on windows or macos ? What is the encoding utf-8 or other ? |
Oops, fixed that. But still the same issue. I am currently on Mac, but I can try Windows tomorrow and report the findings. |
Do you have trouble adding a translation? |
I have issues adding them manually and using them in the app in English and Chinese. Just can't use the extension to select text and add with your Extension. done some more testing, still get an error with this in the files |
I don't understand when to use my extension. |
I highlight the text, including the double quotes, then click the light bulb and then click Extract values to arb file. In the field I press enter to accept the name. In Windows this works perfectly, thank you. On a Mac, it comes up with an error in the bottom right of the screen. |
I assume that you do not have a Mac to test with. Since I am interested in writing some VSCode Extensions, I will have a go at debugging this and getting it working on a Mac for you. If you find anything or have some pointers, please let me know here. |
I'm trying on my mac with your files. I don't have this problem. Do you have a particular encoding? |
Sorry, I have only had a Mac for a few months. How would I do this, and how would I check? |
I tried that and others.
I should get some time on the weekend to download the code, package it up and debug any error messages it displays. |
I have worked out what it is. It should be fixed to work correctly. but I can work with how it is now in l10n.yaml I had but your extension requires this documentation only specifies lib/l10n |
Hi @DionJChapman, With this modification, you no longer have the problem? Strange, because normally it retrieves the path from the 'l10n.yaml' file for the arb folder. What's more, the error you're getting seems to be about JSON and not about finding the 'arb' files. |
I try with this l10n.yaml arb-dir: lib/l10n
template-arb-file: app_en.arb
output-localization-file: app_localizations.dart
nullable-getter: false It's work |
I am getting the following errors
Expected ',' or '}' after property value in JSON at position 1080
Expected double-quoted property name in JSON at position 11066
I only have 369 lines in my .arb file.
The text was updated successfully, but these errors were encountered: