File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change 11import  '../generated/l10n/zulip_localizations.dart' ;
22
33abstract  final  class  GlobalLocalizations  {
4+   /// The [ZulipLocalizations]  for the user's chosen language and locale. 
5+   /// 
6+   /// Where possible, the [ZulipLocalizations]  should be acquired 
7+   /// through [ZulipLocalizations.of]  instead, using a [BuildContext] . 
8+   /// This static field is to be used where access to a [BuildContext]  
9+   /// is impractical, such as in the API bindings 
10+   /// (which use localizations when throwing exceptions). 
11+   /// 
12+   /// This gets set during app startup once we have the user's choice of locale. 
13+   /// If accessed before that point, it uses the app's first supported locale, 
14+   /// namely 'en'. 
415static  ZulipLocalizations  zulipLocalizations = 
516    lookupZulipLocalizations (ZulipLocalizations .supportedLocales.first);
617}
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments