nativemind_translations 1.0.0
nativemind_translations: ^1.0.0 copied to clipboard
Extra languages for nativemind_core and nativemind_copilot; re-exports NmLocalizationService (run-time JSON strings) of nativemind_core.
nativemind_translations #
Extra languages for nativemind_core and nativemind_copilot: af, ar, az, bn, de, es, fr, ha, he, ig, it, ja, km,
ko, lo, ms, my, pt, sw, tg, uk, yo, zu. The base five (en, ru, th, hi, zh) ship with the packages themselves.
void main() {
NmTranslations.install();
runApp(const MyApp());
}
Strings a language does not translate read English. The copilot strings added in copilot 0.2.0 (on-device models, attachments, voice) are not translated yet.
NmLocalizationService #
Wishyut's run-time string service (VPNclient-app, 2025; see PROVENANCE.md). It lives in nativemind_core (1.1.0) and
this package re-exports it, so either import works: await NmLocalizationService.load(locale)
reads packages/nativemind_vpn/assets/lang/<code>.json (English when the file is missing; package: null reads the
app's own assets/lang/), then NmLocalizationService.to('key') returns the string ([key] when missing).
nativemind_vpn calls load from its localizations delegate.
The copilot strings were machine-translated (October 2026). A review by native speakers is pending. Fixes go into
arb/<lib>/*.arb; then run dart run tool/build_translations.dart.
License: NativeMindNONC (LICENSE). Upgrading from 0.1: doc/migration-1.0.md.