-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Description
Hi,
I'm trying to add Japanese translation to the web editor.
Would like to get some advice from @catarak and @oruburos.
-
The folder name for translations.json
Currently, I named itjabecausedate-fns/localeis usingjafor Japanese translation.
If you guys have any idea for the folder naming, I want to know about it.
Ex. lang-Areaen-UK
In terms of Japanese, it will beja-JPorja-JA -
Display
dropdown menu
I could run the Docker image on my local machine.
I created a new translations.json file and addjatoclient/i18n.jsand add a button toclient/components/Nav.jsx.
<li className="nav__dropdown-item">
<button
onFocus={this.handleFocusForLang}
onBlur={this.handleBlur}
value="ja"
onClick={e => this.handleLangSelection(e)}
>
日本語
</button>
</li>Currently, I hard-coded ja to check the UI
https://twitter.com/koji_kanao/status/1317094279517536256/photo/1
If there is a way to enable a dropdown menu that the current p5 web editor has, I want to know about it.
- space in translations.json
I copieden-US/translations.jsonto translate items to Japanese.
Then I noticed a couple of items have space like the following.
Is this on purpose? If so, space should be a single byte or I need to align to Japanese 2 bytes?
Thanks!
Nature of issue?
- Existing feature enhancement
Details about the bug:
- Web browser and version:
- Operating System:
- Steps to reproduce this bug:
Feature enhancement details:
- Add Japanese translation
New feature details:
Add "Japanese" button on the top right corner