nativemind_translations 2.0.0
nativemind_translations: ^2.0.0 copied to clipboard
Extra languages for nativemind_core and nativemind_copilot; re-exports NmLocalizationService (run-time JSON strings) of nativemind_core.
example/example.dart
// Installs the 23 extra languages for nativemind_core and nativemind_copilot before the app starts.
// written by Claude Code (generated by Claude Code), 2026-11-16; pub.dev example (pana "Package has an example")
import 'package:flutter/material.dart';
import 'package:nativemind_core/nativemind_core.dart';
import 'package:nativemind_translations/nativemind_translations.dart';
// written by Claude Code (generated by Claude Code), 2026-11-16; pub.dev example (pana "Package has an example")
void main() {
NmTranslations.install();
runApp(
MaterialApp(
locale: const Locale('de'),
localizationsDelegates: const [NmL10n.delegate],
home: Scaffold(
body: Center(child: NmWideActionButtonNoIcon(() => nmSuccessDialog('OK'), 'OK')),
),
),
);
}