Open
Description
When we set the locale for es_CO
with name as COP
he changes the position of the $
from left to right.
code examples executed on DartPad:
// This shows the $ at left
import 'package:intl/intl.dart';
void main() {
final format = NumberFormat.simpleCurrency(name: 'COP');
print(format.format(100));
}
// This shows the $ at right
import 'package:intl/intl.dart';
void main() {
Intl.defaultLocale = 'es_CO';
final format = NumberFormat.simpleCurrency(name: 'COP');
print(format.format(100));
}
// This shows the $ at right
import 'package:intl/intl.dart';
void main() {
final format = NumberFormat.simpleCurrency(locale: 'es_CO', name: 'COP');
print(format.format(100));
}
// This shows the $ at left
import 'package:intl/intl.dart';
void main() {
final format = NumberFormat.simpleCurrency(locale: 'en', name: 'COP');
print(format.format(100));
}