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

[i18n] Add i18n to JavaScript to make the code more readable #139

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

pedro-mendonca
Copy link

Make the JavaScript code more readable by having the translatable strings in the code instead of injected from the PHP.

Also some JS hardcoded strings were wrapped in gettext.

@stklcode
Copy link
Contributor

Thanks Pedro for this PR.

IIRC the i18n JavaScript feature was introduced in WordPress 5.0.
Currently, AntiVirus declares Compatibility back to WP 4.1...

I don't have any strong feelings about supporting legacy systems, so I'd be fine with raising "Requires at least" to 5.0.

PS: don't worry about the failing PHP 8.1 CI pipeline, just a missing variable on pull requests - we should fix this in a different scope.

@stklcode stklcode added this to the 1.6.0 milestone Jul 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants