Zyme
Custom scripts in command line?
Is it possible to create a custom script that I can run with "npm run"? It seems I can't access defineNuxtConfig during this approach with a normal TS file and TSX.
ReferenceError: defineNuxtConfig is not defined
I want a custom script I can run in the terminal that extends "npm run generate" so I can pass some arguments.12 replies
Detecting locale using env variables not working
I am trying to get my multi domain locale detection working but it isn't.
I don't want to use a prefix, it is different domains and I want to try out the translation in dev.
I have:
Then I set the local using Powershell:
But it loads the english website and is looking for keys in the "en" locale:
And yes, this is true, it does not exist in "en" because "en" is the default language:
So how do I make it look in the "se" locale?
And if the language is "en" I don't want to see this error message.
I don't want to translate english to english. I want to use the full strings in the code instead of using translation keys.
Lastly I need this to work with the generate command. So that I can get a translated website in static format in different languages.
5 replies