question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Question] Does this module support route prefixes?

See original GitHub issue

Does this module support route prefixes as described here in nuxt/i18n documentation.

None of these strategies work in my nuxt.config.ts

My nuxt.config.ts file.

import { defineNuxtConfig } from "nuxt";

// https://v3.nuxtjs.org/api/configuration/nuxt.config
export default defineNuxtConfig({
  modules: ["@nuxtjs/prismic", "@intlify/nuxt3", "@nuxtjs/color-mode"],
  prismic: {
    endpoint: "https://studio-022.prismic.io/api/v2",
  },
  intlify: {
    localeDir: "locales",
    strategy: "prefix_except_default",
    vueI18n: {
      defaultLocale: "en",
      locale: "sr-latn",
      fallbackLocale: "en",
    },
  },
});

Does this feature require additional option configuration or is it not supported at all?

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:14
  • Comments:9

github_iconTop GitHub Comments

4reactions
SVV-teamcommented, Jul 14, 2022

@belegisanin Nuxt community create i18 branch for Nuxt3 https://github.com/nuxt-community/i18n-module/tree/next

packege.json

"devDependencies": {
    "@nuxtjs/i18n": "npm:@nuxtjs/i18n-edge",
    "nuxt": "^3.0.0-rc.5"
},

Im using it, basic function work properly. Prefix works too)) /en/profile /uk/profile etc

2reactions
SVV-teamcommented, Jul 18, 2022

@CatalinGheorghiu

No problem

Снимок экрана 2022-07-18 в 12 00 12 Снимок экрана 2022-07-18 в 12 00 33 Снимок экрана 2022-07-18 в 12 00 56
Read more comments on GitHub >

github_iconTop Results From Across the Web

How to add a route prefix to specific modules using NestJS?
I want to add routing prefixes at the module ...
Read more >
Global prefix for a module / route tree #255 - nestjs/nest - GitHub
The module prefix is users . Now few modules may depend on the UsersModule , but the UsersModule should not 'extend' they API...
Read more >
Disabling language prefix for route in module - Drupal Answers
I've got it just about working, except the URL /sitemap.xml 301 automatically redirects to the URL /lang/sitemap.xml - and it really shouldn't.
Read more >
Express Tutorial Part 4: Routes and controllers - MDN Web Docs
Defining and using separate route modules. The code below provides a concrete example of how we can create a route module and then...
Read more >
Troubleshoot Border Gateway Protocol Routes that Do Not ...
Use these Steps to Troubleshoot this Problem ... There are multiple ways in which a prefix is added to a BGP table and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found