mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 03:26:24 +00:00
Refactor of translation lookup!
This commit is contained in:
parent
b86025013d
commit
2a3e83509f
26 changed files with 339 additions and 353 deletions
9
lib/l10.dart
Normal file
9
lib/l10.dart
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
|
||||
import 'package:one_context/one_context.dart';
|
||||
|
||||
|
||||
// Shortcut function to reduce boilerplate!
|
||||
I18N L10()
|
||||
{
|
||||
return I18N.of(OneContext().context);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue