localino 1.2.1 copy "localino: ^1.2.1" to clipboard
localino: ^1.2.1 copied to clipboard

Json based localization.

Localino - simple json based localization solution.

Features #

Loads localization asset based on current or preferred locale.
Formatted as Json/Map. Handles single strings, maps and lists, plurals and simple formatting.\

Getting started #

import 'package:localino/localino.dart';

Localino has multiple ways how to init. One of the ways is to via standalone module and simple config options.

    LocalinoModule.standalone(LocalinoOptions(
        config: LocalinoConfig(
        locales: LocalinoAsset.map(locales: [
                'en',
                'cs',
            ]),
        ),
    ));

Initialization with [localino_builder] and [localino_live] where config is loaded from assets folder.

    LocalinoModule.standalone(LocalinoLive.options(
        remoteSync: true,
    ));

Sub-Localization Object to store other data (like international state names, tel. phones, etc.) based on parent (main) Localization instance.

    Localino subLocalization = LocalinoProvider.instance.instanceOf(assets);

Mixin provider:

class CustomObject with LocalinoProvider {
  
  String name = localize('name');
}

Instance:

 String name = LocalinoProvider.instance.localize('name');

By default Localino is build as module for [Control] and uses [control_config] to store preferences (chosen locale).

Control.initControl(
  modules: [
    ConfigModule(),
    LocalinoModule(options)
  ],
);

Localino can be used as standalone package to manage assets localization. But true power comes with other packages:

Localino Admin: localino.app Localino Flutter: localino Localino Live: localino_live Localino Builder: localino_builder

2
likes
130
points
217
downloads

Publisher

verified publisherbasecontrol.dev

Weekly Downloads

Json based localization.

Homepage

Documentation

API reference

License

MIT (license)

Dependencies

control_config, control_core, flutter

More

Packages that depend on localino