mastodon.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
The original server operated by the Mastodon gGmbH non-profit

Administered by:

Server stats:

273K
active users

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.

@KEINOS I can add it from this format for you, yes!

@Gargron

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!

@Gargron

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!

Is it live? Because joinmastodon.org doesn't seem to obey "Accept-Language: ja"

@tomas Just went up, try again

Nope, still get English. Both for "Accept-Language: ja,sv-SE;q=0.8,sv;q=0.6,en-US;q=0.4,en;q=0.2
" or even the simpler "Accept-Language: ja". Double-checked with curl too like:

curl -H "Accept-Language: ja" https://joinmastodon.org/
joinmastodon.orgMastodon - Decentralized social mediaLearn more about Mastodon, the radically different, free and open-source decentralized social media platform.

@tomas Well you can't curl it, it uses JS. There is statically generated HTML as fallback but only in English

I suspected as much. Worksforme, but I bet there is one or two non-english speaking lynx users who would disagree (:

@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 mastodon.social/media/s3FsQrBT

Also an screenshot showing my navigator.language and how the headline did not change.

@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 mastodon.social/media/-2Hif5LN

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

@fermuch I have pushed a fix to that function to master