Localization extension

When you create a widget that has translatable strings, add this default import to the widget's file:

import 'package:i18n_extension/default.i18n.dart';

This will allow you to add .i18n, .plural() and .gender() to your strings, but won’t translate anything.

on

Properties

i18n String

Available on String, provided by the Localization extension

no setter

Methods

gender(Gender gender) String

Available on String, provided by the Localization extension

plural(Object? value, [Gender? gender]) String

Available on String, provided by the Localization extension