slang-i18n / slang

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

I want to use the white spaces in the keys sometimes and also ' and some symbols #243

Closed AbdallahR99 closed 1 month ago

AbdallahR99 commented 2 months ago

I want to use the white spaces in the keys sometimes and also ' and some symbols and just used it as string so I want to disable the generation of the getters feature is it possible? Because I get this:

image

so need I way to avoid it

Tienisto commented 2 months ago

See https://github.com/slang-i18n/slang?tab=readme-ov-file#-maps

You need to mark a specific section as (map). Then you can use any key as string.

For example:

  "timeValidation(map)": {
    "Start time must be later than end time": "Start time must be later than end time"
  }
Tienisto commented 1 month ago

Closing due to inactivity