NashLocalizationsX extension

Convenience extension for translating strings directly.

on

Properties

loc → NashLocalizations

Available on BuildContext, provided by the NashLocalizationsX extension

Access the NashLocalizations instance.
no setter

Methods

plural(String key, int count, {Map<String, String>? params}) → String

Available on BuildContext, provided by the NashLocalizationsX extension

Translate with pluralization.
translate(String key, {Map<String, String>? params}) → String

Available on BuildContext, provided by the NashLocalizationsX extension

Translate a key.