WebsiteLocalizations class abstract
Callers can lookup localized strings with an instance of WebsiteLocalizations
returned by WebsiteLocalizations.of(context).
Applications need to include WebsiteLocalizations.delegate() in their app's
localizationDelegates list, and the locales they support in the app's
supportedLocales list. For example:
import 'generated/website_localizations.dart';
return MaterialApp(
localizationsDelegates: WebsiteLocalizations.localizationsDelegates,
supportedLocales: WebsiteLocalizations.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 WebsiteLocalizations.supportedLocales property.
Constructors
- WebsiteLocalizations(String locale)
Properties
- actions → String
-
Actions label
no setter
- add → String
-
Add button label
no setter
- addField → String
-
Add field
no setter
- addFreemarkerhtmlPage → String
-
Add FreeMarker/HTML page
no setter
- addNew → String
-
Add new
no setter
- addOption → String
-
Add Option
no setter
- addRow → String
-
Add row
no setter
- advancedOptions → String
-
Advanced Options
no setter
- amount → String
-
Amount
no setter
- areYouSure → String
-
Confirmation message
no setter
- assessment → String
-
Assessment
no setter
- assessmentLandingPage → String
-
Assessment Landing Page
no setter
- assessmentNotAvailableForThisLandingPage → String
-
Assessment not available for this landing page
no setter
- assessmentStep2 → String
-
Assessment - Step 2
no setter
- backToLandingPage → String
-
Back to Landing Page
no setter
- cancel → String
-
Cancel button label
no setter
- close → String
-
Close button label
no setter
- confirm → String
-
Confirm button label
no setter
- content → String
-
Content label
no setter
- contentAddFailure → String
-
BLoC message: Failed to add content
no setter
- contentAddSuccess → String
-
BLoC message: Content added successfully
no setter
- contentDeleteFailure → String
-
BLoC message: Failed to delete content
no setter
- contentDeleteSuccess → String
-
BLoC message: Content deleted successfully
no setter
- contentFetchFailure → String
-
BLoC message: Failed to fetch content
no setter
- contentUpdateFailure → String
-
BLoC message: Failed to update content
no setter
- continueButton → String
-
Continue button label
no setter
- create → String
-
Create button label
no setter
- credibility → String
-
Credibility
no setter
- custom → String
-
Custom
no setter
- dark → String
-
Dark
no setter
- delete → String
-
Delete
no setter
- deleteAssessment → String
-
Delete Assessment
no setter
- deleteButton → String
-
Delete button label
no setter
- deleteLandingPage → String
-
Delete Landing Page
no setter
- deleteQuestion → String
-
Delete Question
no setter
- deleteSection → String
-
Delete Section
no setter
- description → String
-
Description label
no setter
- edit → String
-
Edit label
no setter
- emailTemplateIdOptional → String
-
Email template ID (optional)
no setter
- embedOnPageWith → String
-
Embed on a page with:
no setter
- enrollIntoNurtureSequenceOptional → String
-
Enroll into nurture sequence (optional)
no setter
- enterTextHere → String
-
Enter text here...
no setter
- errorLoadingAssessment → String
-
Error loading assessment
no setter
- errorTitle → String
-
Error title
no setter
- facebookUrl → String
-
Facebook URL
no setter
- fields → String
-
Fields
no setter
- form → String
-
Form
no setter
- formName → String
-
Form Name
no setter
- frustration → String
-
Frustration
no setter
- generate → String
-
Generate
no setter
- goBack → String
-
Go Back
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
ID label
no setter
- images → String
-
Images label
no setter
- info → String
-
Info message
no setter
- instagramUrl → String
-
Instagram URL
no setter
- key → String
-
Key label
no setter
- label → String
-
Label
no setter
- landingPageNotFound → String
-
Landing page not found
no setter
- legacy → String
-
Legacy
no setter
- light → String
-
Light
no setter
- linkedinUrl → String
-
LinkedIn URL
no setter
- loading → String
-
Loading message
no setter
- localeName → String
-
final
- messageAfterSubmit → String
-
Message after submit
no setter
- modernTailwind → String
-
Modern Tailwind
no setter
- name → String
-
Name label
no setter
- newButton → String
-
New button label
no setter
- no → String
-
No button label
no setter
- none → String
-
None
no setter
- noRecords → String
-
No records message
no setter
- ofTotal → String
-
Of total label
no setter
- ok → String
-
OK button label
no setter
- openWebsite → String
-
Open website
no setter
- page → String
-
Page label
no setter
- path → String
-
Path label
no setter
- pleaseSelectAPageFirst → String
-
Please select a page first
no setter
- questions → String
-
Questions
no setter
- quickLinks → String
-
Quick Links
no setter
- remove → String
-
Remove button label
no setter
- requiredQuestion → String
-
Required Question
no setter
- resetToDefaults → String
-
Reset to defaults
no setter
- results → String
-
Results
no setter
- retry → String
-
Retry
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- save → String
-
Save button label
no setter
- search → String
-
Search label
no setter
- searchHintAssessments → String
-
Search field hint
no setter
- searchHintForms → String
-
Search field hint
no setter
- searchHintLandingPages → String
-
Search field hint
no setter
- searchHintQuestions → String
-
Search field hint
no setter
- sections → String
-
Sections
no setter
- select → String
-
Select label
no setter
- selectAnAssessmentToTake → String
-
Select an Assessment to Take
no setter
- selectHookType → String
-
Select hook type
no setter
- selectStatus → String
-
Select status
no setter
- sendsThisEmailtemplateToTheSubmitterEgADocumentDelivery → String
-
Sends this EmailTemplate to the submitter, e.g. a document delivery
no setter
- seoDescriptionSearchEnginesLinkPreviews → String
-
SEO description (search engines & link previews)
no setter
- shopDropdownCategories → String
-
Shop dropdown categories label
no setter
- submitButtonLabel → String
-
Submit button label
no setter
- substackUrl → String
-
Substack URL
no setter
- success → String
-
Success message
no setter
- tableHdrDescription → String
-
Table column header
no setter
- tableHdrHeadline → String
-
Table column header
no setter
- tableHdrHookType → String
-
Table column header
no setter
- tableHdrId → String
-
Table column header
no setter
- tableHdrInfo → String
-
Table column header
no setter
- tableHdrName → String
-
Table column header
no setter
- tableHdrNumber → String
-
Table column header
no setter
- tableHdrOption → String
-
Table column header
no setter
- tableHdrOptions → String
-
Table column header
no setter
- tableHdrOptionText → String
-
Table column header
no setter
- tableHdrQuestionText → String
-
Table column header
no setter
- tableHdrScore → String
-
Table column header
no setter
- tableHdrStatus → String
-
Table column header
no setter
- tableHdrSubmissions → String
-
Table column header
no setter
- tableHdrTitle → String
-
Table column header
no setter
- tableHdrType → String
-
Table column header
no setter
- title → String
-
Title label
no setter
- titleShownAboveTheForm → String
-
Title shown above the form
no setter
- twitterXUrl → String
-
Twitter / X URL
no setter
- update → String
-
Update button label
no setter
- updateButton → String
-
Update button label
no setter
- upload → String
-
Upload button label
no setter
- url → String
-
Url
no setter
- view → String
-
View label
no setter
- viewDetailedResults → String
-
View Detailed Results
no setter
- warning → String
-
Warning message
no setter
- website → String
-
Website label
no setter
- websiteAddFailure → String
-
BLoC message: Failed to add website
no setter
- websiteAddSuccess → String
-
BLoC message: Website added successfully
no setter
- websiteCancel → String
-
Cancel button label
no setter
- websiteColor → String
-
Website colors label
no setter
- websiteColorDelete → String
-
Delete website colors label
no setter
- websiteColorNew → String
-
New website colors label
no setter
- websiteColorUpdate → String
-
Update website colors label
no setter
- websiteContent → String
-
Website content label
no setter
- websiteContentDelete → String
-
Delete website content label
no setter
- websiteContentNew → String
-
New website content label
no setter
- websiteContentUpdate → String
-
Update website content label
no setter
- websiteDelete → String
-
Delete website label
no setter
- websiteDeleteFailure → String
-
BLoC message: Failed to delete website
no setter
- websiteDeleteSuccess → String
-
BLoC message: Website deleted successfully
no setter
- websiteFetchFailure → String
-
BLoC message: Failed to fetch website data
no setter
- websiteInfo → String
-
Website Info
no setter
- websiteMailingListUrl → String
-
Website dialog: email list provider signup URL field label
no setter
- websiteMailingListUrlHelper → String
-
Website dialog: helper text of the email list signup URL field
no setter
- websiteMeasurementId → String
-
Measurement ID label
no setter
- websiteNew → String
-
New website label
no setter
- websiteObsidian → String
-
Obsidian vault label
no setter
- websiteObsidianSynch → String
-
Synch Obsidian label
no setter
- websiteObsidianUrl → String
-
Obsidian URL label
no setter
- websiteObsidianZip → String
-
Obsidian zip file label
no setter
- websiteProductCategories → String
-
Product categories label
no setter
- websites → String
-
Websites label
no setter
- websiteSave → String
-
Save button label
no setter
- websiteShowInMenu → String
-
Website content: pages listed in the website menu
no setter
- websiteStripeApiKey → String
-
Stripe API key label
no setter
- websiteTemplate → String
-
Website Template
no setter
- websiteThemeAppliesToBothLegacyAndModernTemplates → String
-
Website theme (applies to both Legacy and Modern templates)
no setter
- websiteTitle → String
-
Website title label
no setter
- websiteUpdate → String
-
Update website label
no setter
- websiteUpdateFailure → String
-
BLoC message: Failed to update website
no setter
- websiteUpdateSuccess → String
-
BLoC message: Website updated successfully
no setter
- websiteUrl → String
-
Website URL label
no setter
- websiteUseAsHomePage → String
-
Website content dialog: make this page the site home page
no setter
- websiteWebsiteCategories → String
-
Website categories label
no setter
- websiteWebsiteContent → String
-
Website content label
no setter
- yes → String
-
Yes button label
no setter
- youtubeUrl → String
-
YouTube URL
no setter
Methods
-
contentUpdateSuccess(
String title) → String - BLoC message: Content updated successfully
-
formAddSuccess(
String name) → String - Form {name} added
-
formDeleteSuccess(
String name) → String - Form {name} deleted
-
formUpdateSuccess(
String name) → String - Form {name} updated
-
imageInformation(
String title) → String - Image information title
-
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) → WebsiteLocalizations?
Constants
-
delegate
→ const LocalizationsDelegate<
WebsiteLocalizations> -
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.