Comments (13)
I submitted a Feature Suggestion: Include user's language in body of outgoing slash command request. Please add your vote to this to encourage Mattermost to take it into consideration.
from mattermostonfire.
Great idea. I'm a little stumped on how to get the user's locale from the request. AFAIK Mattermost does not send it in the initial request to create the poll. So I'm not sure I can make the i18n dynamic.
I will work on moving the text into a separate json map using ICU Message syntax. Best case we can figure out how to dynamically pull the right text. Worst case I can add instructions to define the locale as an environment variable.
from mattermostonfire.
I've created a branch with basic support for specifying a language as an environment config.
However now I need help with the actual translations. Anyone available to help translate in German, French, etc before I merge it into master?
from mattermostonfire.
@DarckCrystale and elpatron68 - you guys rock! Thanks so much. I just merged your PRs into my initial PR and merged all of it to master.
from mattermostonfire.
The easiest way is to edit https://github.com/jedfonner/MattermostOnFire/blob/i18next/functions/translations.json and provide it as Gist (https://gist.github.com/) or at Pastebin.
Otherwise, you could clone this repository, checkout the i18next
branch, make your changes, commit them and create a pull request.
from mattermostonfire.
As a French, I can say we have some French people who would be happy to have the poll tool in French too! So I think that it would be better if the project was prepared to support multiple languages and then set up something like https://crowdin.com to allow non tech people to translate it in their own language (Crowdin is used for Open Broadcaster Software, I have an account on it and it's pretty easy to use, easier than make a ton of pull requests).
from mattermostonfire.
@jedfonner did you contact the Mattermost dev team to ask them?
from mattermostonfire.
Thanks! I will translate to german.
from mattermostonfire.
I can translate to French if needed and if "how to do" is explained :)
from mattermostonfire.
Thanks!
from mattermostonfire.
Done for me and pull request submitted :)
from mattermostonfire.
Just one last question: Updating a running installation to support i18n is the same way than deploying a fresh one?
from mattermostonfire.
@elpatron68 Pretty much. Update your local working directory to the latest code, then set your mattermost.language
environment variable as explained in the new Readme section, and then run firebase deploy
(luckily it's all JavaScript so nothing to build locally!)
from mattermostonfire.
Related Issues (5)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mattermostonfire.