slang-i18n / slang

Type-safe i18n for Dart and Flutter
https://pub.dev/packages/slang
MIT License
474 stars 39 forks source link

Why does it force me to use t.translations.? #120

Closed AlejandroEsquivel666 closed 1 year ago

AlejandroEsquivel666 commented 1 year ago

Hi, I've been using slang and I have a question, why does the example use t.mainScreen.title and when generating the translations it forces me to use t.translations.mainScreen.title?

Tienisto commented 1 year ago

Please show your file name and file content. I cannot help you without any information

AlejandroEsquivel666 commented 1 year ago

Hello, of course, sorry, here are the images, and it's strange because with another partner it works well, but with me it marks that error. These are the file names route This is the content of the translations content This is the error that shows me when trying to use it error

And the slang.yaml or build.yaml is the same as the example build

Tienisto commented 1 year ago

You need to set namespaces: false in the build.yaml.

AlejandroEsquivel666 commented 1 year ago

Great, that was the problem, thank you very much, previously I removed options and according to me I had also removed that one and nothing, but I must have been confused.