mirror of
https://github.com/elastic/kibana.git
synced 2025-04-25 02:09:32 -04:00
[i18n] a few docs updates (#127964)
This commit is contained in:
parent
f4c4fd6778
commit
3cc429d2cb
3 changed files with 13 additions and 18 deletions
|
@ -30,8 +30,8 @@ Please make sure you have signed the [Contributor License Agreement](http://www.
|
||||||
|
|
||||||
Read <<kibana-localization-best-practices>> for details on our localization practices.
|
Read <<kibana-localization-best-practices>> for details on our localization practices.
|
||||||
|
|
||||||
Note that we cannot support accepting contributions to the translations from any source other than the translators we have engaged to do the work.
|
Note that we cannot support accepting contributions to the translations from any source other than the translators we have engaged in doing the work.
|
||||||
We are still to develop a proper process to accept any contributed translations. We certainly appreciate that people care enough about the localization effort to want to help improve the quality. We aim to build out a more comprehensive localization process for the future and will notify you once contributions can be supported, but for the time being, we are not able to incorporate suggestions.
|
We are yet to develop a proper process to accept any contributed translations. We certainly appreciate that people care enough about the localization effort to want to help improve the quality. We aim to build out a more comprehensive localization process for the future and will notify you once Kibana supports external contributions. Still, for the time being, we cannot incorporate suggestions.
|
||||||
|
|
||||||
[discrete]
|
[discrete]
|
||||||
[[kibana-release-notes-process]]
|
[[kibana-release-notes-process]]
|
||||||
|
@ -73,7 +73,7 @@ To make sure that your PR is included in the Release Notes, add the right label.
|
||||||
* `release_note:fix` — Fixes for bugs that existed in the previous release.
|
* `release_note:fix` — Fixes for bugs that existed in the previous release.
|
||||||
* `release_note:deprecation` — Deprecates functionality that existed in previous releases.
|
* `release_note:deprecation` — Deprecates functionality that existed in previous releases.
|
||||||
* `release_note:breaking` — Breaking changes that weren't present in previous releases.
|
* `release_note:breaking` — Breaking changes that weren't present in previous releases.
|
||||||
* `release_note:skip` — Changes that should not appear in the Release Notes. For example, docs, build, and test fixes, or unreleased issues that are only in `master`.
|
* `release_note:skip` — Changes that should not appear in the Release Notes. For example, docs, build, and test fixes, or unreleased issues that are only in `main`.
|
||||||
|
|
||||||
|
|
||||||
include::development-github.asciidoc[leveloffset=+1]
|
include::development-github.asciidoc[leveloffset=+1]
|
||||||
|
|
|
@ -83,18 +83,12 @@ node scripts/i18n_check --fix --include-config ../kibana-extra/myPlugin/.i18nrc.
|
||||||
[discrete]
|
[discrete]
|
||||||
=== Implementing i18n in the UI
|
=== Implementing i18n in the UI
|
||||||
|
|
||||||
{kib} relies on several UI frameworks (ReactJS and AngularJS) and
|
{kib} relies on ReactJS and requires localization in different environments (browser and NodeJS).
|
||||||
requires localization in different environments (browser and NodeJS).
|
|
||||||
The internationalization engine is framework agnostic and consumable in
|
The internationalization engine is framework agnostic and consumable in
|
||||||
all parts of {kib} (ReactJS, AngularJS and NodeJS).
|
all parts of {kib} (ReactJS, and NodeJS).
|
||||||
|
|
||||||
To simplify
|
To simplify internationalization in React, an additional abstraction is
|
||||||
internationalization in UI frameworks, additional abstractions are
|
built around the I18n engine using https://github.com/yahoo/react-intl[React-intl] for React.
|
||||||
built around the I18n engine: `react-intl` for React and custom
|
|
||||||
components for AngularJS. https://github.com/yahoo/react-intl[React-intl]
|
|
||||||
is built around https://github.com/yahoo/intl-messageformat[intl-messageformat],
|
|
||||||
so both React and AngularJS frameworks use the same engine and the same
|
|
||||||
message syntax.
|
|
||||||
|
|
||||||
|
|
||||||
[discrete]
|
[discrete]
|
||||||
|
@ -109,7 +103,7 @@ export const HELLO_WORLD = i18n.translate('hello.wonderful.world', {
|
||||||
});
|
});
|
||||||
-----------
|
-----------
|
||||||
|
|
||||||
Full details are {kib-repo}tree/master/packages/kbn-i18n#vanilla-js[here].
|
Full details are {kib-repo}tree/main/packages/kbn-i18n#vanilla-js[here].
|
||||||
|
|
||||||
[discrete]
|
[discrete]
|
||||||
==== i18n for React
|
==== i18n for React
|
||||||
|
@ -133,14 +127,14 @@ export const Component = () => {
|
||||||
};
|
};
|
||||||
-----------
|
-----------
|
||||||
|
|
||||||
Full details are {kib-repo}tree/master/packages/kbn-i18n#react[here].
|
Full details are {kib-repo}tree/main/packages/kbn-i18n#react[here].
|
||||||
|
|
||||||
[discrete]
|
[discrete]
|
||||||
=== Resources
|
=== Resources
|
||||||
|
|
||||||
To learn more about i18n tooling, see {blob}src/dev/i18n/README.md[i18n dev tooling].
|
To learn more about i18n tooling, see {kib-repo}blob/{branch}src/dev/i18n/README.md[i18n dev tooling].
|
||||||
|
|
||||||
To learn more about implementing i18n in the UI, use the following links:
|
To learn more about implementing i18n in the UI, use the following links:
|
||||||
|
|
||||||
* {blob}packages/kbn-i18n/README.md[i18n plugin]
|
* {kib-repo}blob/{branch}packages/kbn-i18n/README.md[i18n plugin]
|
||||||
* {blob}packages/kbn-i18n/GUIDELINE.md[i18n guidelines]
|
* {kib-repo}blob/{branch}packages/kbn-i18n/GUIDELINE.md[i18n guidelines]
|
|
@ -16,3 +16,4 @@ You do not need to configure any settings to run Kibana in English.
|
||||||
* English - `en` (default)
|
* English - `en` (default)
|
||||||
* Chinese - `zh-CN`
|
* Chinese - `zh-CN`
|
||||||
* Japanese - `ja-JP`
|
* Japanese - `ja-JP`
|
||||||
|
* French - `fr-FR`
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue