-
Notifications
You must be signed in to change notification settings - Fork 8.5k
escape ' -> \' for the UI-WELCOME_ERROR #10581
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
Closed
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
issue: that's why CI is failing (https://kibana-ci.elastic.co/job/elastic+kibana+pull-request+multijob-intake/4504/console):
I guess you wanted to write something like this instead
Our tools now enforce default message for all labels that allows developers to actually see the real label content without looking into translation files. So we got rid of
en.jsonentirely and extract all default messages automatically whenever translation vendors need them.@pavel06081991 @maryia-lapata can you please help @srl295 to test this change (i.e where one should put and register test translation file for
common.ui.etc.)? Essentially we need a localized version of this label that includes apostrophe.Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@srl295
As far as I understood, the code below doesn't really call function
i18nAnd the attribute value is displayed as it is:

If we change code to invoke
i18n, like this:it will be rendered correctly (I checked with fr locale):

But
i18ntool doesn't extract such message for now. @LeanidShutau just created PR #24006 to fix this.In case you would like to check translations with custom locale, here the steps are:
node scripts/i18n_check --output ./. It will generateen.jsonfile with default translations and it place the file in the root folder.fr.jsonfile, copy translations fromen.json, update messages infr.jsonaccording to locale (you can just update one or several messages).src/core_plugins/kibana/index.jsadd path tofr.jsonfile intranslationsarray:config/kibana.ymlby changingi18n.localeparam. (i18n.locale: "fr")There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @srl295! Please let us know if you need any help with this PR. We intend to ship fix for this issue in the 6.6 release, but If you don't have time that's fine too! Someone from the i18n team will just take it over.