Improve the handling of JS language packs with each plugin update
- Dominant language
- JavaScript
- Stars
- 1.4k
- Forks
- 383
- Avg merge
- 4d 12h
- Merged PRs (30d)
- 80
Description
## Feature Description
With each Site Kit update there can be issues with Site Kit reverting to English, despite no change to the users defined language (ie/ Japanese). This occurs since there is a delay of up to one hour for language packs to be updated with each plugin release. There are more details contained in the below trac ticket:
https://meta.trac.wordpress.org/ticket/6188
To mitigate these incidents, consider an in product or other solution that checks a users site language and whether they have the latest stable version of the language pack for their active SK version. The user could be shown a prompt to download and install the latest language page.
**Additional context:**
We don't get a lot of users complaining about this in the support forums, but there are plenty of mentions of these elsewhere, in particular from Japanese users of the plugin. See below examples:
- [Recent Report](https://twitter.com/2525_kana_code/status/1695105430324998596)
- [Recent Report 2](https://twitter.com/axecom/status/1697070373240775004)
- [Recent Report 3](https://twitter.com/hiro20180901/status/1686333658251341824)
**Temporary workaround:**
There are a couple of workarounds a user can apply if they find their Site Kit menu items and strings revert to English. These are mentioned below:
- **Workaround 1**: Users can uninstall and reinstall Site Kit once more. This will force updates to the most recent version of the SK language pack for the users defined language
- **Workaround 2** - [Translation Tools](https://wordpress.org/plugins/translation-tools/) or another plugin that update plugins language packs: you can use a plugin to ensure translations will remain in Japanese.
https://wordpress.org/plugins/translation-tools
---------------
_Do not alter or remove anything below. The following sections will be managed by moderators only._
## Acceptance criteria
*
## Implementation Brief
*
### Test Coverage
*
## QA Brief
*
## Changelog entry
*
Contributor guide
Research direction
Start by reviewing the linked WordPress Trac ticket 6188 and the reported language-pack update delay described in this issue. Define the update flow and acceptance criteria around detecting the user's site language, checking the active Site Kit version's latest stable pack, and presenting an appropriate update prompt.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- internationalization, localization
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100