[Nightly] EUI i18n tokens in nightly Kibana PR - #9876
Draft
weronikaolejniczak wants to merge 2 commits into
Draft
Conversation
When the nightly build updates @elastic/eui in Kibana, the i18n mapping
file (i18n_eui_mapping.tsx) must be kept in sync with the new token list
or the Kibana linting CI fails.
- Add `scripts/sync_kibana_i18n.mjs`: a Node.js script that diffs old vs
new `i18ntokens.json` and surgically patches `i18n_eui_mapping.tsx`
(adds/removes/modifies entries, handles plain strings and interpolated
arrow-function forms).
- Add two steps to `update_kibana_dependencies__prepare_changes.yml`:
- "Save current EUI i18n tokens": fetches `i18ntokens.json` from the
EUI GitHub repo at the version currently installed in Kibana, before
the dependency update runs.
- "Sync EUI i18n tokens": after bootstrap, fetches the sync script from
EUI at `eui_ref`, runs it against old/new tokens, then runs
`jest --updateSnapshot` and commits any changes as a separate
`chore: sync EUI i18n tokens` commit.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
weronikaolejniczak
force-pushed
the
worktree-feat-automate-kibana-i18n-sync
branch
from
August 7, 2026 11:15
6506116 to
0d6b7f6
Compare
馃挌 Build Succeeded
|
馃挌 Build Succeeded
|
When the nightly build updates @elastic/eui in Kibana, the i18n mapping
file (i18n_eui_mapping.tsx) must be kept in sync with the new token list
or the Kibana linting CI fails.
- Add two steps to `update_kibana_dependencies__prepare_changes.yml`:
- "Save current EUI i18n tokens": fetches `i18ntokens.json` from the
EUI GitHub repo at the version currently installed in Kibana, before
the dependency update runs.
- "Sync EUI i18n tokens": after bootstrap, runs an inline Node.js
script that diffs old vs new tokens, patches `i18n_eui_mapping.tsx`
(adds/removes/modifies entries, handles plain strings and interpolated
arrow-function forms), then runs `jest --updateSnapshot` and commits
any changes as a separate `chore: sync EUI i18n tokens` commit.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Closes https://github.com/elastic/eui-private/issues/750
Fixes the recurring nightly build failure caused by EUI i18n token changes not being propagated to Kibana's
i18n_eui_mapping.tsx: elastic/kibana#279387scripts/sync_kibana_i18n.mjs- a Node.js script that diffs twoi18ntokens.jsonfiles and patches Kibana's mapping file:defaultMessagevalues,update_kibana_dependencies__prepare_changes.ymlworkflow:i18ntokens.jsonfrom EUI GitHub at the version currently installed in Kibana; falls back toeui_last_releasefor snapshot versions;eui_ref, runs it and if the mapping changed - runsjest --updateSnapshotand commits the result as a separatechore: sync EUI i18n tokenscommit.Test plan
workflow_dispatchagainst a ref where tokens changedchore: sync EUI i18n tokenscommit appears in the Kibana PR when tokens differ馃 Generated with Claude Code