Skip to content

Feature request: remove i18n script #48

Description

@BuckyBuck135

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions