Skip to content

NumberFormat.simpleCurrency for es_CO with COP symbol on right and not left #854

Open
@migueloli

Description

@migueloli

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));
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions