-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Japanese Translation of Web Editor #1638
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
Comments
Hi @koji , so sorry but I don't fully understand the issue. So let's run a quick recap
See you around |
Hi @oruburos thank you for your reply.
Yes, That what I did.
The following is
I added the following after <li className="nav__dropdown-item">
<button
onFocus={this.handleFocusForLang}
onBlur={this.handleBlur}
value="ja"
onClick={e => this.handleLangSelection(e)}
>
日本語
</button>
</li> There isn't Temporary, I hardcoded the following line to see the UI
Okay got it. Probably keeping the spaces makes sense. Thanks! |
Hi @koji |
Hi @oruburos
|
Hi @koji, that's great. you're welcome. As soon as I have time I will submit a PR to add that part to the documentation |
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 it
ja
becausedate-fns/locale
is usingja
for Japanese translation.If you guys have any idea for the folder naming, I want to know about it.
Ex. lang-Area
en-UK
In terms of Japanese, it will be
ja-JP
orja-JA
Display
dropdown menu
I could run the Docker image on my local machine.
I created a new translations.json file and add
ja
toclient/i18n.js
and add a button toclient/components/Nav.jsx
.Currently, I hard-coded
ja
to check the UIhttps://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.I copied
en-US/translations.json
to translate items to Japanese.Then I noticed a couple of items have space like the following.
https://github.com/processing/p5.js-web-editor/blob/develop/translations/locales/en-US/translations.json#L520
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?
Details about the bug:
Feature enhancement details:
New feature details:
Add "Japanese" button on the top right corner
The text was updated successfully, but these errors were encountered: