-
Notifications
You must be signed in to change notification settings - Fork 8.1k
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
Add translation files to CDN assets #181650
Add translation files to CDN assets #181650
Conversation
/ci |
1 similar comment
/ci |
d3adff7
to
cd7026b
Compare
/ci |
/ci |
/ci |
@elasticmachine merge upstream |
/ci |
💚 Build Succeeded
Metrics [docs]Public APIs missing comments
Canvas Sharable Runtime
Unknown metric groupsAPI count
History
To update your PR or re-run it, just comment with: |
// translation files | ||
const pluginPaths = plugins.map((plugin) => resolve(dirname(plugin))); | ||
for (const locale of supportedLocale) { | ||
const translationFileContent = await generateTranslationFile(locale, pluginPaths); |
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.
Is this deterministic? Any reason not to copy over the files from node_modules/@kbn/translations-plugin/translations
?
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.
the actual translation files sent to the server aren't following the exact same format than the ones in node_modules/@kbn/translations-plugin/translations
(even if in practice, the files from the translations
plugin is the only "source" to generate those final ones).
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.
LGTM
Summary
Part of #72880
rendering
service to use the translation files from the CDN if configured/enabledHow to test
Connect to the serverless project that was created for the PR, and confirm the translation file is being loaded from the CDN