Amp-story translations#35333
Conversation
|
Hey @gmajoulet, @newmuis! These files were changed: |
|
@danielrozenberg do you know why the |
Looks like the bundle-size job was cancelled because of a failure in unit tests - I recommend rebasing on main and force-pushing. We just removed the fail-fast behaviour, so even if there are failures in other jobs, the bundle-size job will continue |
|
Thanks @danielrozenberg! @ilyaspiridonov do you mind rebasing and force pushing as Daniel mentions above? Thanks! |
|
@newmuis any idea why circleCI is failing? |
|
@calebcordry do you know (since it's an amp-story-auto-ads E2E test that is failing)? |
|
I restarted the test as it looks like a flake. That should do it. The bundle-size saw a |
|
Agreed that removing descriptions from every file except for @ilyaspiridonov would you mind doing that so we can re-evaluate the bundle size? |
|
Ping @ilyaspiridonov, do you mind removing the descriptions from the non-English translations for now? |
|
@newmuis Apologies for the long wait (PTO and traveling) - should be good now, but let's see what the bundle-size outputs. |
|
Could you please add a new line at the end of each file? It looks like our systems are complaining about this. |
|
We deprecated a feature recently and will need to remove these 4 i18n strings from these files: Is it possible to make this change in this PR? |
I don't think they are in these files, am I missing something? @processprocess |
My bad, to clarify: |
|
@ilyaspiridonov are you able to provide translations for Portuguese (as spoken in Portugal, rather than Brazil) and Slovak? The PR is currently failing because these files are expected to exist. If we don't want them to exist, we'll need to deprecate them, which will be a whole separate process. Thanks for following through with this! Getting the first PR through will be the hardest; once we've established the right structure, hopefully we can continue to replicate it for future batches. @processprocess let's remove these in a followup PR to make this one easier to get through |
👍 Filed #35934 for tracking. |
|
@newmuis Sorry, something must have happened to pt-pt, sl and et on my end, we did have these languages, just added them in this PR. |
|
Thanks for the updates @ilyaspiridonov! Looks like it's almost there, but the new files reintroduced formatting issues; do you mind updating those as well? |
|
@newmuis Thank for the heads-up, the checks seem to be green now! |
|
Thanks for working through this! Looks like it's passing the code checks now, and we can calculate the bundle size changes: /to @gmajoulet for analysis on whether that increase is reasonable. |
|
A few things to feel better about adding these extra 3KB:
|
|
cc @ampproject/wg-performance FYI, I'll wait a bit in case you want to chime in before merging |
|
@gmajoulet: FMI Is the current status quo to load all languages instead of just one? have we done any research to determine the size savings from only loading 1? |
|
Loading just one today would mean either:
|
|
Have we done research to determine the size savings from only loading 1? That would help determine priority. |
|
They're 3+KBs out of 70 so it'd be a 5-10% reduction in bundle size. |
* Updated translations * Remove comments from translated files * add new line at the end of the localization files * add et, pt-PT and sl translations to amp-story * remove lines 37, 38, 18, 20 from amp-story i18n files * fix spaces * fix spaces in loc files * formatting fixes in translation files * formatting fixes in translation files * fix formatting in translation files * fox some more formatting issues in translation files * more fixes in translation files
|
+1 in my opinion not a reason to block this current work, but also +1 to having some sort of tracking for a "real" fix of how to only serve the language the user needs. The 3 KB is the diff from what we already have, but I'd expect we'd shave more than 3 KB if we could find a way to only serve one language without the PX hit. (A complex strawman: separately define render-blocking strings vs. non-render-blocking strings. Only bundle the render-blocking ones, late-load the rest, which AFAIK would/could be the majority). A transformer could do a lot (e.g. we know the quiz/poll strings are render-blocking if there is a quiz/poll on the first page of the story), but there may also be diminishing returns here. Separate from any particular proposal, @gmajoulet do you mind filing a tracking issue for finding high-level alignment on a solution here? |
|
I'm tracking various performance improvement project that I'm trying to sort by category (LCP/bundle-size/runtime performance etc). I'll finalize all of that and track it publicly as part of a larger bundle-size project. |
|
@samouri translation/localization would be very SSR-able with potential to avoid any render-blocking caused by waiting for the strings to load. Simple option is having a split out |
* Updated translations * Remove comments from translated files * add new line at the end of the localization files * add et, pt-PT and sl translations to amp-story * remove lines 37, 38, 18, 20 from amp-story i18n files * fix spaces * fix spaces in loc files * formatting fixes in translation files * formatting fixes in translation files * fix formatting in translation files * fox some more formatting issues in translation files * more fixes in translation files
Updates translations in .json files for amp-story UI labels (69 languages)
Translations by Alconost