Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1088)

Unified Diff: sdk/lib/io/platform.dart

Issue 2785073002: [dart:io] Adds Platform.localeName (Closed)
Patch Set: Fixup ddc patch file Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sdk/lib/_internal/js_runtime/lib/io_patch.dart ('k') | sdk/lib/io/platform_impl.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/io/platform.dart
diff --git a/sdk/lib/io/platform.dart b/sdk/lib/io/platform.dart
index b087b053c3203fba77c7cf37c961a5fb0bfb1bae..580ad97db164425a8b4ca4cdcb735273723b31d5 100644
--- a/sdk/lib/io/platform.dart
+++ b/sdk/lib/io/platform.dart
@@ -71,6 +71,7 @@ class Platform {
static final _operatingSystem = _Platform.operatingSystem;
static final _localHostname = _Platform.localHostname;
static final _version = _Platform.version;
+ static final _localeName = _Platform.localeName;
/**
* Get the number of processors of the machine.
@@ -84,6 +85,11 @@ class Platform {
static String get pathSeparator => _pathSeparator;
/**
+ * Get the name of the current locale.
+ */
+ static String get localeName => _localeName;
+
+ /**
* Get a string (`linux`, `macos`, `windows`, `android`, or `ios`)
* representing the operating system.
*/
« no previous file with comments | « sdk/lib/_internal/js_runtime/lib/io_patch.dart ('k') | sdk/lib/io/platform_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698