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

internationalized routing should not require overrides for all languages #1456

Open
murbanowicz opened this issue Oct 23, 2024 · 1 comment
Labels
area: routing contributions welcome Good for people looking to contribute enhancement New feature or request has-workaround

Comments

@murbanowicz
Copy link

murbanowicz commented Oct 23, 2024

Is your feature request related to a problem? Please describe.

Some words are international or common for quite some languages.
If the path is the same for almost all locales supported by the app, we should not have to copy paste the same path all over just to be able to override one specific language.

Describe the solution you'd like

The functionality and therefore the typings, should require only partial override if provided instead of all languages supported by the app.

So instead of doing this for specific path in Italian:

    "/foo/[slug]": {
      en: "/foo/[slug]",
      de: "/foo/[slug]",
      es: "/foo/[slug]",
      fr: "/foo/[slug]",
      pl: "/foo/[slug]",
      it: "/mozarella/[slug]",
    },

We should be able to do this:

    "/foo/[slug]": {
      it: "/mozarella/[slug]",
    },

Describe alternatives you've considered

Providing a path for every locale.

@murbanowicz murbanowicz added enhancement New feature or request unconfirmed Needs triage. labels Oct 23, 2024
@amannn
Copy link
Owner

amannn commented Oct 24, 2024

I guess this could be considered, yes. Related: #990

@amannn amannn added the contributions welcome Good for people looking to contribute label Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: routing contributions welcome Good for people looking to contribute enhancement New feature or request has-workaround
Projects
None yet
Development

No branches or pull requests

2 participants