test(i18n): cover the i18n facade, selector, manifest routing + locale (T-462)
Tests for the epic's new code so the 95% floor holds: ClideSettings.i18n string/interpolated null-safe + localizedCommandTitle; settings-renderer localization (section/field/help/select/file, project-scope tag, didUpdateWidget); extension-activation rollback + settings-contribution unregister; the Dutch gate check; RootShell applying app.locale on boot; and prompt/conversation tool-body + file-ref coverage. Also harden the menu toggle re-tap (capture the button point while stable, then tapAt) so it no longer throws getCenter under the serial coverage load. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -35,4 +35,20 @@ void main() {
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
// The bundled Dutch pack (T-462) must load and cover the same Tier-0 keys, so
|
||||
// a locale switch never falls back to English for a built-in label.
|
||||
group('i18n coverage — Dutch pack (nl-NL)', () {
|
||||
for (final entry in referenced.entries) {
|
||||
final ns = entry.key;
|
||||
test('$ns nl_NL catalog covers every referenced key', () async {
|
||||
final loader = AssetCatalogLoader(bundle: rootBundle);
|
||||
final catalog = await loader.load(ns, const Locale('nl', 'NL'));
|
||||
expect(catalog, isNotEmpty, reason: 'nl_NL catalog for "$ns" failed to load');
|
||||
for (final key in entry.value) {
|
||||
expect(catalog.containsKey(key), isTrue, reason: 'nl_NL "$ns" missing key "$key"');
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user