Translations

Can the current pxt-core and pxt-ev3 string resources be forked into crowdin to be added to pxt-ev3-community?

@richard

are they not being downloaded when you run pxt static pkg? or do you just want to create your own crowdin project that the community can maintain?

i don’t think there is a clean way to fork a crowdin project; or at least not that i know of

Yeah, it would be nice to be able to be able to update translations on crowdin if we change the strings in typescript. Otherwise we will have to resort to manually editing json for any additions.

But I also think that there is no fork support on crowdin, so I’m not sure if there is any good way to accomplish this.

@richard
Right now, we’re downloading existing JSON files, which we then use during the build, but there’s also the issue of MD files. That’s the problem.

Another issue is that when we add new string resources, we won’t have translations for them. So, what should we do? It would be inconvenient to write them manually. We should create them in CrowdIn the same way. But then, is it possible to upload everything translated to CrowdIn so we don’t have to retranslate them?

I hope I wrote it correctly.

i’m not sure there’s an easy way to do this without a lot of work for us.

you could always fetch the markdown files from our backend and replicate them in your repo, but you’d probably have to write a script or something to copy them over to the correct locations with your staticpkg build.

also, looks like the static site is fetching the MD files using a query parameter:

https://pxt-ev3-community.github.io/pxt-ev3/beta/docs/tutorials/what-animal-am-i.md?lang=ru

which it probably shouldn’t be doing… could you open an issue on pxt? i can at least modify pxt so that the static site uses a different URL when requesting the localized file. something more like:

https://pxt-ev3-community.github.io/pxt-ev3/beta/docs/_locales/ru/tutorials/what-animal-am-i.md

I don’t understand one thing.
I looked at https://makecode.com/cli/staticpkg
And as far as I understand, there are only JSON files there.
Can MD files and others be used during the build at all? So that they load in the correct localization.

@richard
I’ve created a project in Crowdin. It offers the option to export and import existing translations. Could you please export them as an archive? You can select exactly what to export.