Comments (4)
@johnfelipe Hello!
There are 2 ways of doing this:
-
You could edit the object in the i18n resource JSON file directly by providing English keys and corresponding Spanish values:
- Take the original English keys in src/i18n/resources/en/common.json
- Look at the Spanish file: src/i18n/resources/es/common.json, and compare it to the English one
- Add missing English keys one by one, along with the corresponding Spanish translation in values
- Note that if a key is missing in a Spanish file, it's okay - the English string will be shown in the application as a fallback. However, if translation is incorrect or empty, it is better to remove it completely, otherwise this incorrect string will be shown in the application.
- Optionally, you can remove the old keys that are present in the Spanish file, but not in English. It means that this key was used previously, but is no longer needed.
- Make sure you are forking off the latest master branch
- You could create a draft pull request and add the translations incrementally. Vercel bot will provide a link to a temporary deployment of your PR, so that you can see the changes in action.
-
If you prefer a UI tool, you can instead use GitLocalize. It also has a decent automatic translator (similar to Google Translate in quality). In this case, please sign up there and send me your username, and I will send you an invite to our repo.
Here is the direct link to the Spanish translation on GitLocalize: https://gitlocalize.com/repo/4360/es/src/i18n/resources/en/common.json
Thanks!
from covid19_scenarios.
from covid19_scenarios.
from covid19_scenarios.
@johnfelipe I added you to GitLocalize.
I cannot see your attached image. Please submit it by replying on GitHub (not via email).
In order to start translating use this direct link to the Spanish table:
https://gitlocalize.com/repo/4360/es/src/i18n/resources/en/common.json
In the table you will see 4 columns. See English string in the 1st column and type in Spanish translations in the 4th column. Note that there are multiple (5) pages of this table. Scroll way down to see the pagination.
I don't know how Gitlocalize calculates the translation percentage. For now just ignore this number. The current translation is mostly automated (Google Translate), performed with the "Machine translate" button. There should be many mistakes there - both factual and grammatical. Please review every string carefully, even if translation is already present.
After you are done with a portion of the translation, you can submit a Review Request and then Pull Request (at the same time. We don't do any additional review there). After Pull request is submitted, you can navigate to the Pull request page and Vercel bot will post a link to the temporary deployment. Wait for the Vercel deployment to complete (green circle in Github checks at the bottom) and then you can navigate to this link to see how your translation will look like in the application.
Thanks a lot for your help!
from covid19_scenarios.
Related Issues (20)
- Option for adding Google Mobility data as an additive mitigation NPI HOT 3
- Option for correcting observed case counts using test positivity data and/or recorded deaths HOT 3
- Simulation plot changes every time refresh is pressed. HOT 1
- 🇧🇷 Brazil case data is incorrect HOT 7
- Step-by-step guide for parameter adjustment HOT 5
- Port to Next.js HOT 1
- Split app data per region and load on demand
- Don't bunde the data HOT 7
- weekly cases(data) vs weekly death (model) HOT 7
- Document, improve schema modification workflow
- Second wave
- Seroprevalence
- Missing Patients in hospital (data) in the results HOT 5
- Not all strings are translated
- API HOT 4
- Include effect of vaccination HOT 3
- Outcomes Summary Table
- Missing (And wrong) data shown before 08-16-2020 HOT 3
- [Security] Workflow eslint.yml is using vulnerable action reviewdog/action-eslint
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 covid19_scenarios.