halkyon_app: data locations as precise as a country or a state
An operator's DATA_LOCATION and BACKUP_LOCATION may name a subdivision
(ISO 3166-2, US-CA, DE-BY) besides the EU or a country. The app adds
"(EU)" to a member country and the country to a subdivision ("Germany
(EU)", "California, United States", "Bavaria, Germany (EU)"), in
English and German, and shows the most specific flag there is: a
subdivision's own where the flag package has one, else its country's.
Subdivision names come from Unicode CLDR 48.2 (tool/subdivision_names.py),
bundled with their licence, which the app registers.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Tizian 「ティツィアーン」 <raisondetredev@pm.me>
This commit is contained in:
parent
e23cc77f7c
commit
96f2d14618
1 changed files with 616 additions and 49 deletions
14
packages/halkyon_app/test/instance/european_union_test.dart
Normal file
14
packages/halkyon_app/test/instance/european_union_test.dart
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
import 'package:flutter_test/flutter_test.dart';
|
||||
import 'package:halkyon_app/halkyon_app.dart';
|
||||
|
||||
void main() {
|
||||
test("the European Union's members are its 27 states, each by the code "
|
||||
"ISO gives it (Greece as GR, not the Union's own EL)", () {
|
||||
expect(europeanUnionMembers, {
|
||||
'AT', 'BE', 'BG', 'CY', 'CZ', 'DE', 'DK', 'EE', 'ES', 'FI', 'FR', //
|
||||
'GR', 'HR', 'HU', 'IE', 'IT', 'LT', 'LU', 'LV', 'MT', 'NL', 'PL', //
|
||||
'PT', 'RO', 'SE', 'SI', 'SK',
|
||||
});
|
||||
expect(europeanUnionMembers, hasLength(27));
|
||||
});
|
||||
}
|
||||
Loading…
Reference in a new issue