From 7f3f757a382f7c567401dde05131beab33b577e0 Mon Sep 17 00:00:00 2001 From: Pierre Gayvallet Date: Mon, 22 Jul 2024 15:40:35 +0200 Subject: [PATCH] [i18n] include i18nrc file in 3rd party plugin bundles (#188814) ## Summary Fix #57273 Include the `. i18nrc.json` file when bundling 3rd party plugins --- packages/kbn-plugin-helpers/src/integration_tests/build.test.ts | 1 + packages/kbn-plugin-helpers/src/tasks/write_server_files.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/packages/kbn-plugin-helpers/src/integration_tests/build.test.ts b/packages/kbn-plugin-helpers/src/integration_tests/build.test.ts index e7a5db404c5ca..90ba58720d3c2 100644 --- a/packages/kbn-plugin-helpers/src/integration_tests/build.test.ts +++ b/packages/kbn-plugin-helpers/src/integration_tests/build.test.ts @@ -96,6 +96,7 @@ it('builds a generated plugin into a viable archive', async () => { expect(files).toMatchInlineSnapshot(` Array [ + "kibana/fooTestPlugin/.i18nrc.json", "kibana/fooTestPlugin/common/index.js", "kibana/fooTestPlugin/kibana.json", "kibana/fooTestPlugin/node_modules/.yarn-integrity", diff --git a/packages/kbn-plugin-helpers/src/tasks/write_server_files.ts b/packages/kbn-plugin-helpers/src/tasks/write_server_files.ts index 362ef171cd9da..c5c61fbad90ff 100644 --- a/packages/kbn-plugin-helpers/src/tasks/write_server_files.ts +++ b/packages/kbn-plugin-helpers/src/tasks/write_server_files.ts @@ -32,6 +32,7 @@ export async function writeServerFiles({ vfs.src( [ 'kibana.json', + '.i18nrc.json', ...(plugin.manifest.server ? config.serverSourcePatterns || [ 'yarn.lock',