Feat/hyw locale#799
Conversation
Adding support for the Western Armenian language (hyw), a distinct variant from (hy), spoken by approximately 10 million people worldwide.
Add the Western Armenian Language.
Add Western Armenian localization for the paint editor.
Add Western Armenian localization for the scratch interface.
Add Western Armenian localization for the scratch blocks.
Added Armenian translations for various boost, ev3, face sensing, microbit, music, pen, speech, text to speech, translate, video sensing, and wedo2 blocks.
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
DELETE_BLOCK used the comment string instead of delete-block wording. Co-authored-by: Cursor <cursoragent@cursor.com>
|
All contributors have signed the CLA ✍️ ✅ |
efcd359 to
0deed95
Compare
09f5c5e to
ae9a65c
Compare
|
Hi @antrohoosclubs, thanks for all your work on Western Armenian localization, and for your patience. One reason for the delay is that Western Armenian isn't currently a supported locale in our localization service, Transifex. Until it's there, this work can't flow through our normal translation pipeline. The good news: our team has reached out to Transifex and asked them to add Western Armenian as a supported language. That's a change Transifex has to make on their side, so we'll need to wait for them before we can properly bring this in. I don't have a firm timeline, but the request is in. In the meantime, it would really help if you could consolidate this work into #799 and close the other PRs that duplicate it or represent smaller parts of the work. That gives us a single place to review once the language is ready, instead of 21 separate PRs to keep track of. The locale registration and Transifex config details can be finalized once we know the exact language code Transifex assigns. |
|
Hi @cwillisf, Thank you very much for the update and for explaining the situation. That is great news to hear. I completely understand that the remaining blocker is Transifex support for Western Armenian. |
Resolves
Proposed Changes
Describe what this Pull Request does
Checklist for updating translations
There are two situations in which we create manual PRs to update translations:
1. Updating translations manually
> npm run pull:editor> npm run pull:www> npm run testeditor/<resource>/<lang code>.jsonAdding a language
Edit
src/supported-locales.mjs:localesconstrtlLocalesCheck if the new language uses a country code
src/supported-locales.mjs:localeMap. Format is'<W3C HTML browser locale string>': '<Transifex ICU locale string>'.tx/config:lang_maplist. Format is<Transifex ICU locale string>:<W3C HTML browser locale string>txcli;.tx/configwill eventually be deprecatedEdit
src/index.js:localeDataarrayCheck if locale is in
react-intlreact-intl:src/supported-locales.mjs:customLocales, add entry with parent set to areact-intllocalesrc/index.js:localeData, add entry for parent localeUpdate translations per the "Updating translations" section above
Confirm that we see changes to:
src/supported-locales.mjssrc/index.js.tx/config(if language needed a new locale)editor/<resource>/<lang code>.jsonBump minor version number in
package.jsonAdd language po files to scratchr2_translations
scratchr2_translations/legacywithtx pull -l <locale>and check in changesAdd language to scratchr2 settings
settings/base.pywith the new languageAfter scratch-l10n update is published:
package.json, update the version of the scratch-l10n dependency to the version number you used aboveBlockly.ScratchMsgs.locales["<LOCALE CODE>"]is added tomsg/scratch_msgs.js