Closed srl295 closed 6 years ago
Looking forward to the Chinese version.
Have you already supported Chinese?
config/kibana.yml
i18n.defaultLocale: "zh_CN"
This configuration does not work, so I use this tool now.
Kibana_Hanization
@sunmaolin Sorry, we currently only support English.
I'm going to close this issue out in favor of #17201. While that is a much newer issue than this one, it contains a lot of information about our current localization effort, and it's best if we don't fragment the discussion across multiple issues.
Many of the details in that other ticket are based on all the things we learned from this effort in particular, so thank you to the great folks at IBM and everyone else that has been involved in getting us to this point!
Kibana Globalization
Note: These requirements were originally written up over a year ago. Take any specific implementation details with a grain of salt. Phases that were already implemented should be reevaluated to make sure they still make sense, especially in light of the new kibana platform work.
Purpose
Architecture Diagram
This was our original plan, but it might need to change dramatically for the new platform
Design
Phase 1
Note this phase was completed, but it's possible the implementation might need to change for the new platform. Most of the code lives here
Purpose
Decide Language for Translation Algorithm
I18n Class
Manages the language translations for Kibana
Responsible for loading translated content per language
The translations file are JSON files with a flat keyspace, where the keys are unique. This uniqueness between translation plugins could be achieved by prefixing the keys with the plugin name. The key signifies the translation ID which would be referenced in translatable files (like JS, HTML etc.).
The key value is the translation string
Example translation JSON file
en.json
UiI18n Class
I18n
class)accept-language header
to BCP 47 tagsTool for Verifying All Translations have Translatable Strings
i18n(<key>)
function in the Jade template. A tool can then be used to find such pattern and extract the keys to fileDeliverable
I18n
unit testsPhase 2
Purpose
Translations Available Client Side
Translation Identifiers Added to Kibana UI
BEFORE (HTML)
AFTER (HTML)
Tool for Verifying All Translations have Translatable Strings (Update)
Translation Plugin Generator
Deliverable
Phase 3
Purpose
Translation Identifiers Added to Kibana UI
Deliverables
Phase 4
Purpose
Handling Language Packs
Deliverables
Blockers
Open Questions/Issues
History
This section has links to prior versions of this issue text.
Authors