FeaturebaseLocalizations class abstract
Callers can lookup localized strings with an instance of FeaturebaseLocalizations
returned by FeaturebaseLocalizations.of(context)
.
Applications need to include FeaturebaseLocalizations.delegate()
in their app's
localizationDelegates
list, and the locales they support in the app's
supportedLocales
list. For example:
import 'generated/featurebase_localizations.dart';
return MaterialApp(
localizationsDelegates: FeaturebaseLocalizations.localizationsDelegates,
supportedLocales: FeaturebaseLocalizations.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 FeaturebaseLocalizations.supportedLocales property.
- Implementers
- FeaturebaseLocalizationsAf
- FeaturebaseLocalizationsAr
- FeaturebaseLocalizationsAz
- FeaturebaseLocalizationsBe
- FeaturebaseLocalizationsBg
- FeaturebaseLocalizationsBo
- FeaturebaseLocalizationsCa
- FeaturebaseLocalizationsCs
- FeaturebaseLocalizationsDa
- FeaturebaseLocalizationsDe
- FeaturebaseLocalizationsEl
- FeaturebaseLocalizationsEn
- FeaturebaseLocalizationsEs
- FeaturebaseLocalizationsFa
- FeaturebaseLocalizationsFi
- FeaturebaseLocalizationsFr
- FeaturebaseLocalizationsGl
- FeaturebaseLocalizationsHi
- FeaturebaseLocalizationsHr
- FeaturebaseLocalizationsHu
- FeaturebaseLocalizationsId
- FeaturebaseLocalizationsIs
- FeaturebaseLocalizationsIt
- FeaturebaseLocalizationsJa
- FeaturebaseLocalizationsKo
- FeaturebaseLocalizationsLt
- FeaturebaseLocalizationsLv
- FeaturebaseLocalizationsMs
- FeaturebaseLocalizationsNb
- FeaturebaseLocalizationsNl
- FeaturebaseLocalizationsPl
- FeaturebaseLocalizationsPt
- FeaturebaseLocalizationsRo
- FeaturebaseLocalizationsRu
- FeaturebaseLocalizationsSk
- FeaturebaseLocalizationsSl
- FeaturebaseLocalizationsSr
- FeaturebaseLocalizationsSv
- FeaturebaseLocalizationsSw
- FeaturebaseLocalizationsTh
- FeaturebaseLocalizationsTr
- FeaturebaseLocalizationsUk
- FeaturebaseLocalizationsVi
- FeaturebaseLocalizationsZh
Constructors
- FeaturebaseLocalizations.new(String locale)
Properties
- changelog → String
-
This is the title of the changelog page.
no setter
- failedToLoad → String
-
This is the error message that is displayed when the data fails to load.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- localeName → String
-
final
- noChangelogsFound → String
-
This is the message that is displayed when no changelogs are found.
no setter
- noMoreChangelogs → String
-
This is the message that is displayed when there are no more changelogs.
no setter
- noResultsFound → String
-
This is the message that is displayed when no results are found in search.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tryAgainLater → String
-
This is the message that is displayed when the user should try again later.
no setter
Methods
-
changelogDescription(
String appName) → String - No description provided for @changelogDescription.
-
countArticles(
int count) → String - No description provided for @countArticles.
-
lastUpdated(
String daysAgo) → String - No description provided for @lastUpdated.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
writtenBy(
String author) → String - No description provided for @writtenBy.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
of(
BuildContext context) → FeaturebaseLocalizations
Constants
-
delegate
→ const LocalizationsDelegate<
FeaturebaseLocalizations> -
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.