Originally planned for the v3 release, I lacked time to implement a working solution for a script that would remove the i18n system from the kit, allowing for single-language project. This would make this kit an all-rounder.
The issues I ran into were:
- conflicts with other scripts, especially as they might not be run, or run in a different order, leaving the codebase in an unpredictable state. The i18n set up is intricate with a lot of moving parts.
- functions like getLocalizedRoute() need a locale to work: the script must either 1. keep an array of locales, even if only 1 locale in it, or 2. remove all instances of getLocalizedRoute() for normal hrefs
- LanguageSelect component needs locales to work: the script must either 1.keep an array of locales, and conditionally render the component based on number of locales 2. remove all instances of the component
Objective: update the i18n config script so that it allows for the scaffolding of a single-language project.
If anyone wants to contribute, please be my guest!
Originally planned for the v3 release, I lacked time to implement a working solution for a script that would remove the i18n system from the kit, allowing for single-language project. This would make this kit an all-rounder.
The issues I ran into were:
Objective: update the i18n config script so that it allows for the scaffolding of a single-language project.
If anyone wants to contribute, please be my guest!