-
Notifications
You must be signed in to change notification settings - Fork 251
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
#1097 Remove i18nMap and switch to regex based invalid key check #1130
Conversation
✅ Deploy Preview for activist-org ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Thank you for the pull request! ❤️The activist team will do our best to address your contribution as soon as we can. If you're not already a member of our public Matrix community, please consider joining! We'd suggest using Element as your Matrix client, and definitely join the |
Maintainer ChecklistThe following is a checklist for maintainers to make sure this process goes as well as possible. Feel free to address the points below yourself in further commits if you realize that actions are needed :)
|
CC @mattburnett-repo, @cquinn540, @aasimsyed: Wanted to bring these changes to your all's attention. We can talk about this a bit more in the sync, but the
@OmarAI2003: The changes to the checks have already been made in |
The above changes came post checking our strategies at the Vue.js Berlin Meetup :) |
Bringing this in so that we can finalize this quick pivot 😊 |
Contributor checklist
Description
This PR addresses development and performance issues introduced by the
i18nMap
object by replacing it with a method that's more suitable for the project. Note that the i18n-check project has gotten this change in parallel.Issues with the
i18nMap
include:i18nMap
to most frontend files, we will doubtless experience some performance issues in that we'll have a JSON object with 1,000s of keys being loaded into most components and pagesThe solution to the above issues is twofold:
i18n.
r"\"i18n\.[_\S\.]+?\""
and similar patternsWith this the i18n process for the project is set. Further updates to this will come after i18n-check has been released via a version update over here :)
Related issue