ente/auth/docs/localization.md
2024-03-03 18:08:11 +05:30

472 B

Localization

If the feature requires adding new strings, you can do that by following these steps:

  1. Add a new entry inside app_en.arb (remember to save!)

  2. In your dart file, add the following import

    import "package:ente_auth/l10n/l10n.dart";
    
  3. Refer to the string using context.l10n.<keyName>. For example

    context.l10n.account