UbuntuLocalizations class abstract

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

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

import 'l10n/ubuntu_localizations.g.dart';

return MaterialApp(
  localizationsDelegates: UbuntuLocalizations.localizationsDelegates,
  supportedLocales: UbuntuLocalizations.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 UbuntuLocalizations.supportedLocales property.

Available extensions

Constructors

UbuntuLocalizations(String locale)

Properties

aboutLabel String
No description provided for @aboutLabel.
no setter
addLabel String
No description provided for @addLabel.
no setter
allLabel String
No description provided for @allLabel.
no setter
altKey String
No description provided for @altKey.
no setter
applyLabel String
No description provided for @applyLabel.
no setter
ascendingLabel String
No description provided for @ascendingLabel.
no setter
backAction String
No description provided for @backAction.
no setter
backLabel String
No description provided for @backLabel.
no setter
boldLabel String
No description provided for @boldLabel.
no setter
bottomLabel String
No description provided for @bottomLabel.
no setter
byte String
No description provided for @byte.
no setter
cancelLabel String
No description provided for @cancelLabel.
no setter
centerLabel String
No description provided for @centerLabel.
no setter
clearLabel String
No description provided for @clearLabel.
no setter
closeLabel String
No description provided for @closeLabel.
no setter
colorLabel String
No description provided for @colorLabel.
no setter
connectLabel String
No description provided for @connectLabel.
no setter
continueAction String
No description provided for @continueAction.
no setter
continueLabel String
No description provided for @continueLabel.
no setter
controlKey String
No description provided for @controlKey.
no setter
copyLabel String
No description provided for @copyLabel.
no setter
countryCode String
No description provided for @countryCode.
no setter
createLabel String
No description provided for @createLabel.
no setter
cutLabel String
No description provided for @cutLabel.
no setter
decreaseLabel String
No description provided for @decreaseLabel.
no setter
deleteLabel String
No description provided for @deleteLabel.
no setter
descendingLabel String
No description provided for @descendingLabel.
no setter
discardLabel String
No description provided for @discardLabel.
no setter
disconnectLabel String
No description provided for @disconnectLabel.
no setter
doneLabel String
No description provided for @doneLabel.
no setter
downloadLabel String
No description provided for @downloadLabel.
no setter
editLabel String
No description provided for @editLabel.
no setter
enterLabel String
No description provided for @enterLabel.
no setter
errorLabel String
No description provided for @errorLabel.
no setter
executeLabel String
No description provided for @executeLabel.
no setter
exitLabel String
No description provided for @exitLabel.
no setter
fairPassword String
No description provided for @fairPassword.
no setter
fileLabel String
No description provided for @fileLabel.
no setter
fillLabel String
No description provided for @fillLabel.
no setter
findLabel String
No description provided for @findLabel.
no setter
firstLabel String
No description provided for @firstLabel.
no setter
fontLabel String
No description provided for @fontLabel.
no setter
forwardLabel String
No description provided for @forwardLabel.
no setter
fullscreenLabel String
No description provided for @fullscreenLabel.
no setter
gigabyte String
No description provided for @gigabyte.
no setter
goBackLabel String
No description provided for @goBackLabel.
no setter
goodPassword String
No description provided for @goodPassword.
no setter
hashCode int
The hash code for this object.
no setterinherited
helpLabel String
No description provided for @helpLabel.
no setter
homeLabel String
No description provided for @homeLabel.
no setter
importLabel String
No description provided for @importLabel.
no setter
increaseLabel String
No description provided for @increaseLabel.
no setter
indexLabel String
No description provided for @indexLabel.
no setter
informationLabel String
No description provided for @informationLabel.
no setter
insertLabel String
No description provided for @insertLabel.
no setter
italicLabel String
No description provided for @italicLabel.
no setter
kilobyte String
No description provided for @kilobyte.
no setter
landscapeLabel String
No description provided for @landscapeLabel.
no setter
languageName String
The display name for the language. Leave empty to exclude the language from the list of languages on the welcome screen.
no setter
lastLabel String
No description provided for @lastLabel.
no setter
leaveLabel String
No description provided for @leaveLabel.
no setter
leftLabel String
No description provided for @leftLabel.
no setter
localeName String
final
mediaLabel String
No description provided for @mediaLabel.
no setter
megabyte String
No description provided for @megabyte.
no setter
metaKey String
No description provided for @metaKey.
no setter
networkLabel String
No description provided for @networkLabel.
no setter
newLabel String
No description provided for @newLabel.
no setter
nextLabel String
No description provided for @nextLabel.
no setter
noLabel String
No description provided for @noLabel.
no setter
noneLabel String
No description provided for @noneLabel.
no setter
normalLabel String
No description provided for @normalLabel.
no setter
okLabel String
No description provided for @okLabel.
no setter
openLabel String
No description provided for @openLabel.
no setter
pasteLabel String
No description provided for @pasteLabel.
no setter
pauseLabel String
No description provided for @pauseLabel.
no setter
petabyte String
No description provided for @petabyte.
no setter
playLabel String
No description provided for @playLabel.
no setter
portraitLabel String
No description provided for @portraitLabel.
no setter
preferencesLabel String
No description provided for @preferencesLabel.
no setter
previousLabel String
No description provided for @previousLabel.
no setter
printLabel String
No description provided for @printLabel.
no setter
printPreviewLabel String
No description provided for @printPreviewLabel.
no setter
propertiesLabel String
No description provided for @propertiesLabel.
no setter
questionLabel String
No description provided for @questionLabel.
no setter
quitLabel String
No description provided for @quitLabel.
no setter
recordLabel String
No description provided for @recordLabel.
no setter
redoLabel String
No description provided for @redoLabel.
no setter
refreshLabel String
No description provided for @refreshLabel.
no setter
removeLabel String
No description provided for @removeLabel.
no setter
renameLabel String
No description provided for @renameLabel.
no setter
resetLabel String
No description provided for @resetLabel.
no setter
restartLabel String
No description provided for @restartLabel.
no setter
restoreLabel String
No description provided for @restoreLabel.
no setter
retryLabel String
No description provided for @retryLabel.
no setter
revertLabel String
No description provided for @revertLabel.
no setter
rewindLabel String
No description provided for @rewindLabel.
no setter
rightLabel String
No description provided for @rightLabel.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
saveAsLabel String
No description provided for @saveAsLabel.
no setter
saveLabel String
No description provided for @saveLabel.
no setter
searchLabel String
No description provided for @searchLabel.
no setter
selectAllLabel String
No description provided for @selectAllLabel.
no setter
selectLabel String
No description provided for @selectLabel.
no setter
sendLabel String
No description provided for @sendLabel.
no setter
shiftKey String
No description provided for @shiftKey.
no setter
skipLabel String
No description provided for @skipLabel.
no setter
sortLabel String
No description provided for @sortLabel.
no setter
stopLabel String
No description provided for @stopLabel.
no setter
strikeThroughLabel String
No description provided for @strikeThroughLabel.
no setter
strongPassword String
No description provided for @strongPassword.
no setter
submitLabel String
No description provided for @submitLabel.
no setter
terabyte String
No description provided for @terabyte.
no setter
topLabel String
No description provided for @topLabel.
no setter
undoLabel String
No description provided for @undoLabel.
no setter
updateLabel String
No description provided for @updateLabel.
no setter
upLabel String
No description provided for @upLabel.
no setter
viewLabel String
No description provided for @viewLabel.
no setter
warningLabel String
No description provided for @warningLabel.
no setter
weakPassword String
No description provided for @weakPassword.
no setter
windowLabel String
No description provided for @windowLabel.
no setter
yesLabel String
No description provided for @yesLabel.
no setter
zoomInLabel String
No description provided for @zoomInLabel.
no setter
zoomOutLabel String
No description provided for @zoomOutLabel.
no setter

Methods

formatByteSize(num bytes, {int? precision}) String

Available on UbuntuLocalizations, provided by the UbuntuDataSizeLocalizations extension

Formats bytes as a localized human readable string.
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) UbuntuLocalizations

Constants

delegate → const LocalizationsDelegate<UbuntuLocalizations>
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.