GlobalStreamChatLocalizations class abstract
Implementation of localized strings for the stream chat widgets
Supported languages
This class supports locales with the following Locale.languageCodes:
af
- Afrikaansam
- Amharicar
- Arabicas
- Assameseaz
- Azerbaijanibe
- Belarusianbg
- Bulgarianbn
- Bengali Banglabs
- Bosnianca
- Catalan Valenciancs
- Czechcy
- Welshda
- Danishde
- German (plus one country variation)el
- Modern Greeken
- English (plus 8 country variations)es
- Spanish Castilian (plus 20 country variations)et
- Estonianeu
- Basquefa
- Persianfi
- Finnishfil
- Filipino Pilipinofr
- French (plus one country variation)gl
- Galiciangsw
- Swiss German Alemannic Alsatiangu
- Gujaratihe
- Hebrewhi
- Hindihr
- Croatianhu
- Hungarianhy
- Armenianid
- Indonesianis
- Icelandicit
- Italianja
- Japaneseka
- Georgiankk
- Kazakhkm
- Khmer Central Khmerkn
- Kannadako
- Koreanky
- Kirghiz Kyrgyzlo
- Laolt
- Lithuanianlv
- Latvianmk
- Macedonianml
- Malayalammn
- Mongolianmr
- Marathims
- Malaymy
- Burmesenb
- Norwegian Bokmålne
- Nepalinl
- Dutch Flemishno
- Norwegianor
- Oriyapa
- Panjabi Punjabipl
- Polishps
- Pushto Pashtopt
- Portuguese (plus one country variation)ro
- Romanian Moldavian Moldovanru
- Russiansi
- Sinhala Sinhalesesk
- Slovaksl
- Sloveniansq
- Albaniansr
- Serbian (plus 2 scripts)sv
- Swedishsw
- Swahilita
- Tamilte
- Teluguth
- Thaitl
- Tagalogtr
- Turkishuk
- Ukrainianur
- Urduuz
- Uzbekvi
- Vietnamesezh
- Chinese (plus 2 country variations and 2 scripts)zu
- Zulu
This list is available programmatically via kStreamChatSupportedLanguages.
Sample code
To include the localizations provided by this class in a MaterialApp, add GlobalStreamChatLocalizations.delegates to MaterialApp.localizationsDelegates, and specify the locales your app supports with MaterialApp.supportedLocales:
new MaterialApp(
localizationsDelegates: GlobalStreamChatLocalizations.delegates,
supportedLocales: [
const Locale('en', 'US'), // American English
// ...
],
// ...
)
Constructors
- GlobalStreamChatLocalizations({required String localeName})
-
Initializes an object that defines the StreamChat widget's localized
strings for the given
localeName
.const
Properties
- addACommentOrSendLabel → String
-
The label for add a comment or send in case of
attachments inside
StreamMessageInput
no setterinherited - addAFileLabel → String
-
The label for "add a file"
no setterinherited
- addMoreFilesLabel → String
-
The label for "add more files"
no setterinherited
- allowFileAccessMessage → String
-
The message shown for asking file access permission
no setterinherited
- allowGalleryAccessMessage → String
-
The message shown for asking gallery access permission
no setterinherited
- alsoSendAsDirectMessageLabel → String
-
The label for also send
as direct message "checkbox"" in
StreamMessageInput
no setterinherited - cancelLabel → String
-
The label for "Cancel"
no setterinherited
- channelIsMutedText → String
-
The text for showing the channel is muted
no setterinherited
- connectedLabel → String
-
The label for "connected" in
StreamConnectionStatusBuilder
no setterinherited - copyMessageLabel → String
-
The label for "copy message"
no setterinherited
- couldNotReadBytesFromFileError → String
-
The error shown when the file being read has no bytes
no setterinherited
- deleteConversationLabel → String
-
The label for "Delete conversation"
no setterinherited
- deleteConversationQuestion → String
-
The question asked while showing delete conversation dialog
no setterinherited
- deleteLabel → String
-
The label for "Delete"
no setterinherited
- deleteMessageLabel → String
-
The label for "delete message"
no setterinherited
- deleteMessageQuestion → String
-
The question asked while showing delete message dialog
no setterinherited
- disconnectedLabel → String
-
The label for "disconnected" in
StreamConnectionStatusBuilder
no setterinherited - downloadLabel → String
-
The label for "Download"
no setterinherited
- editMessageLabel → String
-
The label for "edit message"
no setterinherited
- emptyChatMessagesText → String
-
The text for showing there are no chats
no setterinherited
- emptyMessagesText → String
-
The text for showing there are empty messages
no setterinherited
- enableFileAccessMessage → String
-
The message shown for asking photo and video access permission
no setterinherited
- enablePhotoAndVideoAccessMessage → String
-
The message shown for asking photo and video access permission
no setterinherited
- fileText → String
-
The text shown for "File"
no setterinherited
- flagLabel → String
-
The label for "Flag"
no setterinherited
- flagMessageLabel → String
-
The label for "flag message"
no setterinherited
- flagMessageQuestion → String
-
The question asked while showing flag message dialog
no setterinherited
- flagMessageSuccessfulLabel → String
-
The label for successful message flag
no setterinherited
- flagMessageSuccessfulText → String
-
The text for showing the message if successfully flagged
no setterinherited
- genericErrorText → String
-
The text for showing generic error
no setterinherited
- giphyLabel → String
-
The label for "Giphy"
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- instantCommandsLabel → String
-
The label for instant commands in
StreamMessageInput
no setterinherited - inText → String
-
The text shown for "In"
no setterinherited
- launchUrlError → String
-
The error shown when
launchURL
failsno setterinherited - leaveConversationLabel → String
-
The label for "Leave conversation"
no setterinherited
- leaveConversationQuestion → String
-
The question asked while showing leave conversation dialog
no setterinherited
- leaveGroupLabel → String
-
The label for "Leave Group"
no setterinherited
- leaveLabel → String
-
The label for "Leave"
no setterinherited
- letsStartChattingLabel → String
-
The label for "let's start chatting"
no setterinherited
- linkDisabledDetails → String
-
The additional info on a link disabled error
no setterinherited
- linkDisabledError → String
-
The label for a link disabled error
no setterinherited
- loadingChannelsError → String
-
The error shown when loading channel fails
no setterinherited
- loadingMessagesError → String
-
The error shown when loading messages fails
no setterinherited
- loadingUsersError → String
-
The error shown when loading users fails
no setterinherited
- markAsUnreadLabel → String
-
The text for marking message as unread functionality in
MessageWidget
no setterinherited - markUnreadError → String
-
The text of an error shown when marking a message as unread fails
no setterinherited
- messageDeletedLabel → String
-
The label for message deleted
no setterinherited
- messageDeletedText → String
-
The text for showing the message is deleted
no setterinherited
- messageReactionsLabel → String
-
The label for message reactions
no setterinherited
- noPhotoOrVideoLabel → String
-
The label for showing no photo or video
no setterinherited
- noTitleText → String
-
The text for showing there is no title
no setterinherited
- noUsersLabel → String
-
The label for showing no users
no setterinherited
- offlineLabel → String
-
The label for "Offline"
no setterinherited
- okLabel → String
-
The label for "OK"
no setterinherited
- onlyVisibleToYouText → String
-
The text for showing if the message is only visible to you
no setterinherited
- operationCouldNotBeCompletedText → String
-
The text for showing the operation could not be completed
no setterinherited
- photoFromCameraLabel → String
-
The label for "photo from camera"
no setterinherited
- photosLabel → String
-
The label for "Photos"
no setterinherited
- reconnectingLabel → String
-
The label for "reconnecting" in
StreamConnectionStatusBuilder
no setterinherited - replyLabel → String
-
The label for "Reply"
no setterinherited
- replyToMessageLabel → String
-
The label for "Reply to message"
no setterinherited
- retryLabel → String
-
The label for "retry" button
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- saveImageLabel → String
-
The label for "Save Image"
no setterinherited
- saveVideoLabel → String
-
The label for "Save Video"
no setterinherited
- searchGifLabel → String
-
The label for search Gif
no setterinherited
- searchingForNetworkText → String
-
The text for showing searching for network
no setterinherited
- sendingFirstMessageLabel → String
-
The label for sending the first message
no setterinherited
- sendLabel → String
-
The label for "Send"
no setterinherited
- sendMessagePermissionError → String
-
The label for the MessageInput hint when permission denied on sendMessage
no setterinherited
- showInChatLabel → String
-
The label for "Show in chat"
no setterinherited
- shuffleLabel → String
-
The label for "Shuffle"
no setterinherited
- slowModeOnLabel → String
-
The label for slow mode enabled in
StreamMessageInput
no setterinherited - somethingWentWrongError → String
-
The error shown when something went wrong
no setterinherited
- startAChatLabel → String
-
The label for "start a chat"
no setterinherited
- streamChatLabel → String
-
The label for "Stream Chat"
no setterinherited
- threadReplyLabel → String
-
The label for "thread reply"
no setterinherited
- todayLabel → String
-
The label for "Today"
no setterinherited
- tryAgainLabel → String
-
The label for "Try again"
no setterinherited
- uploadAFileLabel → String
-
The label for "upload a file"
no setterinherited
- uploadAPhotoLabel → String
-
The label for "upload a photo"
no setterinherited
- uploadAVideoLabel → String
-
The label for "upload a video"
no setterinherited
- uploadErrorLabel → String
-
The label for "Upload Error"
no setterinherited
- userLastOnlineText → String
-
The text for showing the last online of the user
no setterinherited
- userOnlineText → String
-
The text for showing user is online
no setterinherited
- videoFromCameraLabel → String
-
The label for "video from camera"
no setterinherited
- viewInfoLabel → String
-
The label for "View Info"
no setterinherited
- viewLibrary → String
-
The label for "View library"
no setterinherited
- withText → String
-
The label for "With"
no setterinherited
- writeAMessageLabel → String
-
The label for write a message in
StreamMessageInput
no setterinherited - yesterdayLabel → String
-
The label for "Yesterday"
no setterinherited
- youText → String
-
The text shown for "You"
no setterinherited
Methods
-
attachmentLimitExceedError(
int limit) → String -
Label for "Attachment limit exceeded:
it's not possible to add more than $limit attachments"
inherited
-
attachmentsUploadProgressText(
{required int remaining, required int total}) → String -
The text for showing the attachments upload progress
inherited
-
fileTooLargeAfterCompressionError(
double limitInMB) → String -
The error shown in case the file is too large even after compression
while uploading via
StreamMessageInput
inherited -
fileTooLargeError(
double limitInMB) → String -
The error shown in case the file is too large
while uploading via
StreamMessageInput
inherited -
galleryPaginationText(
{required int currentPage, required int totalPages}) → String -
Gallery footer pagination text
inherited
-
membersCountText(
int count) → String -
The text for showing the members count based on
count
inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pinnedByUserText(
{required User pinnedBy, required User currentUser}) → String -
The text for showing who pinned the message
inherited
-
resultCountText(
int count) → String -
The text for showing the result count in
StreamMessageSearchListView
inherited -
sentAtText(
{required DateTime date, required DateTime time}) → String -
The text for showing on which
date
andtime
the message was sentinherited -
threadReplyCountText(
int count) → String -
The text for showing the thread reply count
inherited
-
threadSeparatorText(
int replyCount) → String -
The text for showing the thread separator in case
StreamMessageListView
contains a parent messageinherited -
toggleDeleteRetryDeleteMessageText(
{required bool isDeleteFailed}) → String -
The text for showing delete/retry-delete based on
isDeleteFailed
inherited -
toggleMuteUnmuteAction(
{required bool isMuted}) → String -
The text for "MUTE"/"UNMUTE" based on the value of
isMuted
.inherited -
toggleMuteUnmuteGroupQuestion(
{required bool isMuted}) → String -
The text for "Are you sure you want to mute this group?"/"Are you sure you want to unmute this group?"
based on the value of
isMuted
.inherited -
toggleMuteUnmuteGroupText(
{required bool isMuted}) → String -
The text for "Mute Group"/"Unmute Group" based on the value of
isMuted
.inherited -
toggleMuteUnmuteUserQuestion(
{required bool isMuted}) → String -
The text for "Are you sure you want to mute this user?"/"Are you sure you want to unmute this user?"
based on the value of
isMuted
.inherited -
toggleMuteUnmuteUserText(
{required bool isMuted}) → String -
The text for "Mute User"/"Unmute User" based on the value of
isMuted
.inherited -
togglePinUnpinText(
{required bool pinned}) → String -
The text for showing pin/un-pin functionality in
MessageWidget
based onpinned
inherited -
toggleResendOrResendEditedMessage(
{required bool isUpdateFailed}) → String -
The text for showing resend/resend-edited message
based on
isUpdateFailed
inherited -
toString(
) → String -
A string representation of this object.
inherited
-
unreadCountIndicatorLabel(
{required int unreadCount}) → String -
The text for unread count indicator
inherited
-
unreadMessagesSeparatorText(
) → String -
The text for showing the unread messages count
in the
StreamMessageListView
inherited -
userTypingText(
Iterable< User> users) → String -
The text shown when
users
starts typinginherited -
watchersCountText(
int count) → String -
The text for showing the watchers count based on
count
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
delegate
→ const LocalizationsDelegate<
StreamChatLocalizations> -
A LocalizationsDelegate for
StreamChatLocalizations
. -
delegates
→ const List<
LocalizationsDelegate> - A value for MaterialApp.localizationsDelegates that's typically used by internationalized apps.