import 'package:flutter/cupertino.dart';
import '../sf_delegate.dart';

extension StringLocalizationExtension on String {
  String tr({BuildContext? context, Map<String, dynamic>? args}) =>
      context != null
      ? SFLocalizations.of(context).tr(this, args)
      : SFLocalizations.current.tr(this, args);
}
