multilizely 0.0.4 copy "multilizely: ^0.0.4" to clipboard
multilizely: ^0.0.4 copied to clipboard

A Command Line Interface for working with Localizely in flutter projects that contain multiple l10n.yaml files.

example/lib/main.dart

import 'package:example/src/strings/strings.dart';
import 'package:flutter/material.dart';
import 'package:hello/hello.dart';
import 'package:world/world.dart';

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

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: Builder(builder: (context) => Text(MainStrings.of(context).title)),
        ),
        body: Center(
          child: Column(
            mainAxisSize: MainAxisSize.min,
            children: const [
              HelloText(),
              WorldText(),
            ],
          ),
        ),
      ),
      localizationsDelegates: const [
        ...MainStrings.localizationsDelegates,
        ...HelloStrings.localizationsDelegates,
        ...WorldStrings.localizationsDelegates,
      ],
    );
  }
}
8
likes
130
pub points
0%
popularity

Publisher

unverified uploader

A Command Line Interface for working with Localizely in flutter projects that contain multiple l10n.yaml files.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

args, dio, equatable, yaml

More

Packages that depend on multilizely