AnthologyLocalizations class abstract

Callers can lookup localized strings with an instance of AnthologyLocalizations returned by AnthologyLocalizations.of(context).

Applications need to include AnthologyLocalizations.delegate() in their app's localizationDelegates list, and the locales they support in the app's supportedLocales list. For example:

import 'l10n/anthology_localizations.dart';

return MaterialApp(
  localizationsDelegates: AnthologyLocalizations.localizationsDelegates,
  supportedLocales: AnthologyLocalizations.supportedLocales,
  home: MyApplicationHome(),
);

Update pubspec.yaml

Please make sure to update your pubspec.yaml to include the following packages:

dependencies:
  # Internationalization support.
  flutter_localizations:
    sdk: flutter
  intl: any # Use the pinned version from flutter_localizations

  # Rest of dependencies

iOS Applications

iOS applications define key application metadata, including supported locales, in an Info.plist file that is built into the application bundle. To configure the locales supported by your app, you’ll need to edit this file.

First, open your project’s ios/Runner.xcworkspace Xcode workspace file. Then, in the Project Navigator, open the Info.plist file under the Runner project’s Runner folder.

Next, select the Information Property List item, select Add Item from the Editor menu, then select Localizations from the pop-up menu.

Select and expand the newly-created Localizations item then, for each locale your application supports, add a new item and select the locale you wish to add from the pop-up menu in the Value field. This list should be consistent with the languages listed in the AnthologyLocalizations.supportedLocales property.

Implementers

Constructors

AnthologyLocalizations(String locale)

Properties

blockEntryOverview String
Title of the blog-post overview table.
no setter
blockEntryOverviewDescription String
Subtitle of the blog-post overview table.
no setter
Landing-page link to the blog-post overview. Replaces a hard-coded de/en ternary that silently served English to a third locale.
no setter
brightness String
Label for the light/dark mode affordance.
no setter
contact String
Footer page title for the contact details.
no setter
cookieStatement String
Footer page title for the cookie declaration.
no setter
copyLabel String
Label of CopyButton, which copies a code block or quote to the clipboard.
no setter
Copyright line rendered in the footer liability block.
no setter
copyrightFooterTitle String
Footer page title for the copyright notice. The notice text itself names a specific rights holder and therefore stays in the consuming app.
no setter
declarationOnAccessibility String
Footer page title for the accessibility declaration.
no setter
disclaimer String
External-link liability disclaimer rendered in the footer.
no setter
entryRedirectText String
Text of the cell button that opens a blog post.
no setter
Heading above the footer's outbound link list.
no setter
familyFriends String
Perfect-day chart slice.
no setter
guitar String
Perfect-day chart slice.
no setter
hashCode int
The hash code for this object.
no setterinherited
imprint String
Footer page title for the legal imprint.
no setter
lastModified String
Prefix in front of a document's last-modification date.
no setter
localeName String
final
mailMe String
Label of the mailto button on the about-me table.
no setter
meditation String
Perfect-day chart slice.
no setter
myPerfectDay String
Title of the pie chart breaking a day down into activities.
no setter
openLabel String
Label of OpenButton, which opens the attached document.
no setter
openSourceLicenses String
Title of OpenSourceLicensesPage.
no setter
openSourceLicensesDescription String
Intro paragraph rendered by OpenSourceLicensesPage.
no setter
openSourceLicensesEmpty String
Shown by OpenSourceLicensesPage when LicenseRegistry yields nothing.
no setter
openSourceLicensesError String
Shown by OpenSourceLicensesPage when LicenseRegistry fails.
no setter
playgroundDescription String
Description under a landing-page entry's source-repository link.
no setter
privacyPolicy String
Footer page title for the privacy policy.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectSeedColor String
Label of the Material 3 seed-colour picker.
no setter
shortDescriptionTextMyPersona String
One-line bio under the portrait on the about-me table.
no setter
sleep String
Perfect-day chart slice.
no setter
spendCoffe String
Caption under the donation images. Key spelling kept from the apps' original catalogues so the hoist is a pure move.
no setter
sports String
Perfect-day chart slice.
no setter
sqliteSelfTestDescription String
Sub-headline of SqliteTestPage.
no setter
sqliteSelfTestErrorPrefix String
Prefix in front of a thrown SQLite self-test error. Trailing space is intentional.
no setter
sqliteSelfTestRunLabel String
Label of the SqliteTestPage button while idle.
no setter
sqliteSelfTestRunningLabel String
Label of the SqliteTestPage button while the self test is in flight.
no setter
sqliteSelfTestTitle String
Headline of SqliteTestPage.
no setter
studying String
Perfect-day chart slice.
no setter
switchLang String
Label of the locale picker. Deliberately neutral: a hard-coded 'Switch (DE/EN)' is wrong for any app shipping a third locale.
no setter
toogleBrightness String
Tooltip on the button that flips between light and dark mode. Spelling of the key is kept from the apps' original catalogues so the hoist is a pure move.
no setter
toogleLanguage String
Tooltip on the locale picker.
no setter
visitBlogEntry String
Headline of a landing-page entry.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

of(BuildContext context) AnthologyLocalizations?

Constants

delegate → const LocalizationsDelegate<AnthologyLocalizations>
localizationsDelegates → const List<LocalizationsDelegate>
A list of this localizations delegate along with the default localizations delegates.
supportedLocales → const List<Locale>
A list of this localizations delegate's supported locales.