dart_intl_search 1.2.3 copy "dart_intl_search: ^1.2.3" to clipboard
dart_intl_search: ^1.2.3 copied to clipboard

Extension for a String comparison with a localization transcription (BE, ZH, etc.)

example/lib/main.dart

import 'dart:ui';

import 'package:dart_intl_search/dart_intl_search.dart';
import 'package:flutter_test/flutter_test.dart';

void main() {
  final testCases = [
    (from: 'Café au Lait', locale: 'fr', to: 'cafe au lait'),
    (from: 'Прывiтаньне', locale: 'be', to: 'pryvitanne'),
    (from: 'Pryvitańne', locale: 'be', to: 'pryvitanne'),
    (from: '生物多样性可持续发展', locale: 'zh', to: "shngwuk"),
  ];
  for (var v in testCases) {
    test('Check $v', () {
      assert(v.from.transcription(Locale(v.locale)) == v.to);
    });
  }
}
2
likes
150
points
212
downloads

Publisher

verified publishertercad.com

Weekly Downloads

Extension for a String comparison with a localization transcription (BE, ZH, etc.)

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on dart_intl_search