Skip to content

Conversation

@SuaYoo
Copy link
Member

@SuaYoo SuaYoo commented Jan 17, 2023

Fixes #487 by adding double quotes in html nested in msg (limitation doesn't seem to be documented by lit, only found this out by through the @lit/localize-tools source code, may be lit bug?)

Also, removed the generated translation files from git and instead added npm script to build files before yarn build and yarn start. Once we get start internationalization with translating files we could commit xliff files in this repo or a separate repo, this is more to validate that msg()s in the build won't throw an error down the road.

Manual testing

Run yarn localize:prepare. Verify that command succeeds with en-US message {message warning} is missing, using canonical text as fallback warning, which is expected since we don't have actual translations.

@SuaYoo SuaYoo requested a review from ikreymer January 17, 2023 01:01
@tw4l
Copy link
Member

tw4l commented Jan 17, 2023

Tested locally and it's working great, thanks! :)

@tw4l tw4l merged commit c67af66 into main Jan 17, 2023
@tw4l tw4l deleted the frontend-fix-translation-file branch January 17, 2023 22:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Translation file build fail

3 participants