slang-i18n / slang

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

Make it possible to use a custom name for the output class that accesses the translations #174

Closed bjernie closed 10 months ago

bjernie commented 10 months ago

Right now to access the translations you access the "Translations" class, but with this PR it is possible the name the class whatever you want, like in the flutter_localizations package.

This makes it easier to use a shorter name.

Tienisto commented 10 months ago

Nice, thanks!

bjernie commented 10 months ago

@Tienisto When will a new release of the package be published to pub.dev so I can use the feature?

Tienisto commented 10 months ago

I would like to have #169 in the same release so might be in a few days but I cannot really tell.

In the meantime, you can refer to the Github version.