Getting French, Japanese and Chinese translations soon would be really, really good
@Gargron If you need help in Portuguese and Spanish, let me know it.
Since I'm not in Git environment now, I started translating the "en.json" file, and "es.json" as a reference, to Japanese on Gist.
https://gist.github.com/KEINOS/eca798bbe2517e8bf3b69dcd4df80439
But, before proceeding further, I wanted to know if that will help.
Does it have to be via Git?
@KEINOS I can add it from this format for you, yes!
I'm almost done with the first draft. Though, one question I was asked while translating to Japanese.
> Mastodon is free, open-source
> software. There is no advertis-
> ing, monetizing, or venture
> capital. Your donations directly
> support full-time development
> of the project.
Does this also mean the instance's owner should not place any ads on their instance and/or charge users to join one's instance?
If I should ask this on GitHub through an issue, I will.
@KEINOS Since it's open source, it's easily modifieable - so I don't think there's stopping from someone doing that. But the default is important. And I think most instance owners don't change that, instead relying on crowdfunding as well (Patreon, Enty, OpenCollective)
@Gargron n@mastodon.social
Roger roger
Thank you for the reply!
Wow, that's Good!
Since I'm kinda slow, I know soon or later somebody would do it before!
I went through the translations and some little expressions seems auto-translated but basically it seems OK, and we can contribute that later. Right?
LGTM!
@tomas Just went up, try again
@tomas Well you can't curl it, it uses JS. There is statically generated HTML as fallback but only in English
@Gargron how can I see the preview of the strings I'm translating? I see there's a LanguageSelect, but I don't see where it is used
@fermuch it is not used yet. language is selected via navigator.language (browser preference)
@fermuch you may just change the code in src/reducer.js
@Gargron I created `es.json`, added es to translationRunner, added some strings to es.json so I can test if it works, my `navigator.language` is "es", but I don't see the strings. I also ran `npm run translate`. Is there something else I need to do?
@fermuch can you send me the diff so i can see exactly what's missing?
@fermuch you can do `git diff` and copypaste that onto hastebin.com or similiar
@Gargron https://mastodon.social/media/s3FsQrBT42yLssUGks0
Also an screenshot showing my navigator.language and how the headline did not change.
@Gargron https://github.com/fermuch/joinmastodon is a fork okay?
I only translated `home.headline` to see the changes reflected.
@fermuch ah yes, what's missing is: in src/reducer.js modify the supportedLocales array
@Gargron added, pushed, reloaded the server (it also reloaded automatically, but I did it anyways), but I still can't see the new locale.
Now I have this error:
```
[React Intl] Missing locale data for locale: "es". Using default locale: "en" as fallback.
```
@fermuch maybe you also need to add the thingie in src/App.js (react-intl locale data stuff)
@Gargron https://mastodon.social/media/-2Hif5LNOw15XiLtVRY
I've also printed the `usersLocale` to see if it's detecting my language, but it seems like that's not the problem.
I'd like to solve it by myself, but it's the first time I use react-intl so I'm totally lost :S
@fermuch messagesForLocale must use () instead of [], my bad
@Gargron now it works! Thanks!
@fermuch I have pushed a fix to that function to master