File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -74,6 +74,21 @@ class Platform {
74
74
static String get pathSeparator => _pathSeparator;
75
75
76
76
/// Get the name of the current locale.
77
+ ///
78
+ /// The result should include a language and country code
79
+ /// (e.g. "en_US", "de_AT") and may include a character set
80
+ /// (e.g. "en_US.UTF-8").
81
+ ///
82
+ /// On Linux and Fushia, the locale is taken from the "LANG" environment
83
+ /// variable, which may be set to any value. For example:
84
+ /// ```shell
85
+ /// LANG=kitten dart myfile.dart # localeName is "kitten"
86
+ /// ```
87
+ ///
88
+ /// On Android, the value will not change while the application is running,
89
+ /// even if the user adjusts their language settings.
90
+ ///
91
+ /// See https://en.wikipedia.org/wiki/Locale_(computer_software)
77
92
static String get localeName => _Platform .localeName ();
78
93
79
94
/// A string representing the operating system or platform.
You can’t perform that action at this time.
0 commit comments