Skip to content
This repository was archived by the owner on Aug 30, 2023. It is now read-only.

Commit 59e7bff

Browse files
Merge pull request #263 from sanekyy:update-ruble-sign
PiperOrigin-RevId: 496589278
2 parents 50f93df + 548ef63 commit 59e7bff

File tree

5 files changed

+14
-4
lines changed

5 files changed

+14
-4
lines changed

AUTHORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@
77
# Organization <fnmatch pattern>
88
#
99
Google Inc. <*@google.com>
10+
Aleksandr Yurkovskiy [email protected]

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.18.1
2+
3+
* Update ruble sign and update corresponding test
4+
15
## 0.18.0
26
* Add support for `minimumSignificantDigits` / `maximumSignificantDigits` in
37
NumberFormat.

lib/src/intl/constants.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ final Map<String, String> simpleCurrencySymbols = {
133133
'MYR': 'RM',
134134
'SAR': 'Riyal',
135135
'BYR': 'BYR',
136-
'RUB': 'руб.',
136+
'RUB': '\u20BD',
137137
'MUR': 'Rs',
138138
'SCR': 'SCR',
139139
'LKR': 'Rs',

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: intl
2-
version: 0.18.0
2+
version: 0.18.1
33
description: >-
44
Contains code to deal with internationalized/localized messages, date and
55
number formatting and parsing, bi-directional text, and other

test/number_format_compact_test.dart

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,12 @@ void main() {
195195
testCurrency('en_US', -1234, r'-$1.23K', r'-$1K');
196196

197197
// Check for order of currency symbol when currency is a suffix.
198-
testCurrency('ru', 4420, '4,42\u00A0тыс.\u00A0руб.', '4\u00A0тыс.\u00A0руб.');
198+
testCurrency(
199+
'ru',
200+
4420,
201+
'4,42\u00A0тыс.\u00A0\u20BD',
202+
'4\u00A0тыс.\u00A0\u20BD',
203+
);
199204

200205
// Check for sign location when multiple patterns.
201206
testCurrency('sw', 12341, 'TSh\u00A0elfu12.3', 'TSh\u00A0elfu12');
@@ -330,7 +335,7 @@ void testCurrency(
330335
var symbols = {
331336
'ja': '¥',
332337
'en_US': r'$',
333-
'ru': 'руб.',
338+
'ru': '\u20BD',
334339
'it': '€',
335340
'he': '₪',
336341
'sw': 'TSh',

0 commit comments

Comments
 (0)