cattr-app / server-application

Public clone of https://git.amazingcat.net/cattr/core/app
https://cattr.app
Other
60 stars 29 forks source link

Contribute with the translation #53

Closed lexcorp closed 1 year ago

lexcorp commented 1 year ago

Hello, I would like to contribute to the project by translating the application into Spanish. How can I help you with the translation?

vermorag commented 1 year ago

Well... The translation isn't the strongest part of Cattr now. But basically, you should check: https://github.com/cattr-app/server-application/tree/main/resources/lang (backend strings) https://github.com/cattr-app/server-application/tree/main/resources/frontend/core/i18n/locales (main frontend) And https://github.com/cattr-app/server-application/tree/main/resources/frontend/core/modules/*/locales (locale for each module)

Pluralization rules: https://github.com/cattr-app/server-application/blob/main/resources/frontend/core/i18n/pluralizationRules.js

And basically https://github.com/cattr-app/server-application/blob/main/resources/frontend/core/i18n/index.js - here should be extra language.

FYI - I'm not working for Amazingcat anymore but will continue to help with this project in my free time, so PRs should be reviewed by one of their workers, I'm out of that process. Don't fear to mention me if you'll need any further help.

lexcorp commented 1 year ago

Ok @aVyarvelsky I have all files translated to spanish language, what do I have to do for cattr to recognize this language?

vermorag commented 1 year ago

On the backend, or frontend? Can you link a branch or your MR, please?

lexcorp commented 1 year ago

In both, but I don't know how to do what you say "link a branch or your MR"

vermorag commented 1 year ago

@lexcorp Can you show me what files have you changed?