Skip to content
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

fix: Ensure extract-l10n extracts strings from properties #4274

Merged
merged 1 commit into from
Jun 27, 2023

Conversation

susnux
Copy link
Contributor

@susnux susnux commented Jun 26, 2023

☑️ Resolves

There are still some (two at this moment) string which can not be extracted because they are used within properties like :aria-label="t(...)".
To resolve this we need to use the HTML extractor on vue SFC files.

The huge diff is from applying our code style rules (tab vs spaces).

BTW I tried gettext-extractor-vue written by the gitlab team, but that does not work as it converts all t() calls to _t() or different (compile the SFC), so the extractor does not know which strings to extract.

🏁 Checklist

  • ⛑️ Tests are included or are not applicable
  • 📘 Component documentation has been extended, updated or is not applicable

…ia-label="t()"`

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
@susnux susnux added bug Something isn't working 3. to review Waiting for reviews labels Jun 26, 2023
@raimund-schluessler
Copy link
Contributor

There are still some (two at this moment) string which can not be extracted because they are used within properties like :aria-label="t(...)".

As a workaround we can use computed props there. We do that in other places already.

@skjnldsv
Copy link
Contributor

Nice!

@raimund-schluessler raimund-schluessler merged commit 0206208 into master Jun 27, 2023
17 checks passed
@raimund-schluessler raimund-schluessler deleted the fix/l10n-extract branch June 27, 2023 13:39
@skjnldsv skjnldsv mentioned this pull request Jun 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Translations in Transifex
3 participants