localization_by_muz 2.1.0 copy "localization_by_muz: ^2.1.0" to clipboard
localization_by_muz: ^2.1.0 copied to clipboard

A simple Flutter package for easy JSON-based localization with parameter interpolation and instant language switching

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:localization_by_muz/localization_by_muz.dart';
import 'package:localization_example/screens/home_screen.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return LocalizationProvider(
      defaultLocale: 'en',
      assetLoader: const DefaultAssetLoader(),
      child: LocalizedBuilder(
        builder: (context, locale) {
          return MaterialApp(
            title: "appTitle".localize(),
            home: const HomeScreen(),
            debugShowCheckedModeBanner: false,
          );
        },
      ),
    );
  }
}
1
likes
160
points
13
downloads

Publisher

verified publishermuz.satech.dev

Weekly Downloads

A simple Flutter package for easy JSON-based localization with parameter interpolation and instant language switching

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, shared_preferences

More

Packages that depend on localization_by_muz