Hi
I have a YML file that contains numbers from 0 to 9.
Those numbers are translated to dari manually
0: ۰
1: ۱
2: ۲
3: ۳
4: ۴
5: ۵
6: ۶
7: ۷
8: ۸
9: ۹
When I exported the output file, I got 0s instead of the numbers
For example 0 instead of ۴ (which is 4)
0: 0
1: 0
2: 0
3: 0
4: 0
5: 0
6: 0
7: 0
8: 0
9: 0
the same thing happened when I used GitHub integration.
Is it a bug in the Crowdin?
Dima
January 24, 2024, 2:26pm
2
I just did a quick test from my side, with English as a source, Dari as the target, and a 2-letter code pattern.
I did tests with both .json and .yml files, pre-translation with MT, and then just build-download Dari translation via UI.
My .yml sample:
en:
not_found: "not found"
not_saved:
one: "1"
few: "3"
other: "5"
And my .json sample
{
"Key1": "1",
"Key2": "22",
"Key3": "33"
}
And screenshots of the translation I’ve received as a result
Dima
January 24, 2024, 2:29pm
3
Can you please double-check from your end about how the translation was done? Perhaps there are some other hidden characters that prevents the exporter to see translation, or you’re using some export settings that blocks not translated files, etc.
@Dima
My yml file (general.yml) content
en:
general:
numbers:
0: 0
1: 1
2: 2
3: 3
4: 4
5: 5
6: 6
7: 7
8: 8
9: 9
I used the following format for naming the resulting file %file_name%.%two_letters_code%.%file_extension%
the resulting file (general.ps.yml)
ps:
general:
numbers:
0: 0
1: 0
2: 0
3: 0
4: 0
5: 0
6: 0
7: 0
8: 0
9: 0
Hi!
Since you have the file with translation on your computer - feel free to upload it to your source file as in the guide below:
If you have some existing translations, you can upload them to your project in Crowdin. Import files with translations in your project’s Translations tab or language page, or open a specific file in the Editor and upload translations from there. The...
I’ve tested on my side and translations were uploaded as expected, please check my screenshot below:
can you please use the same yaml that I already shared?
I was able to reproduce the bug in another project.
en:
general:
numbers:
0: 0
1: 1
2: 2
3: 3
4: 4
5: 5
6: 6
7: 7
8: 8
9: 9
Tetiana
January 25, 2024, 11:52am
7
Kindly try to paste " to your source strings as the following “1” and try to upload the source to your project for translations?
Have you tried the suggestions from my previous message?
thank you @Tetiana
The problem is solved now after converting those numbers to string.
1 Like
Dima
January 26, 2024, 9:21am
9
Greetings @abdellani
Great to hear that the issue is solved now!
In case you have similar cases in the future, we recommend checking our Store: it contains all popular file samples (structure of file) that are supported out of the box: