-
Notifications
You must be signed in to change notification settings - Fork 250
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve translation #382
base: gh-pages
Are you sure you want to change the base?
Improve translation #382
Conversation
Please, again. Make small atomic commit and PR. It is more easy to accept small PR with a clear point. I still have too many doubt on what the PR contains and doubts and questions retain the whole changes. |
6a75184
to
f33793d
Compare
@frodrigo I have added a commit and improved the commit messages. |
Where come from the new translation key ? And in especially 'Bike', 'Car', 'Foot', 'Train' |
This introduces a new function t(), which can be called to retrieve a translation for a certain key value in a certain language. If no translation is found in the current language, it defaults to english. If no english translation is found, it returns the given key. This is to avoid displaying "undefined" or no message at all.
Allow translation of service labels to other languages
f33793d
to
de5bc9a
Compare
These are translations of common label for services. Currently, the default service (backend) is named |
This pull request includes updates to the internationalization (i18n) files for multiple languages and improvements to the translation handling in the codebase.
A new
t
function fetches the translation based on the selected language, with a fallback to English if the translation is not available, or to the key name if it's not available in English.