import 'package:flutter_app/components/locale/l10n/app_locale.dart'; import 'package:flutter/widgets.dart'; extension LocalContextX on BuildContext { AppLocale get locale => AppLocale.of(this)!; }