m3_lightmeter/test/data/models/supported_locale_test.dart
Linus von Drenkmann f0110e0edf
Add German translation ()
* l10n: add German translation

* l10n: add German to supported locales

* l10n(german): improve translation of "none"

* l10n(german): change about title

* style: alphabetical sorting of languages
2025-03-22 11:23:18 +01:00

20 lines
713 B
Dart

import 'package:lightmeter/data/models/supported_locale.dart';
import 'package:test/test.dart';
void main() {
test('intlName', () {
expect(SupportedLocale.en.intlName, 'en');
expect(SupportedLocale.fr.intlName, 'fr');
expect(SupportedLocale.ru.intlName, 'ru');
expect(SupportedLocale.zh.intlName, 'zh');
expect(SupportedLocale.de.intlName, 'de');
});
test('localizedName', () {
expect(SupportedLocale.en.localizedName, 'English');
expect(SupportedLocale.fr.localizedName, 'Français');
expect(SupportedLocale.ru.localizedName, 'Русский');
expect(SupportedLocale.zh.localizedName, '简体中文');
expect(SupportedLocale.de.localizedName, 'Deutsch');
});
}