ht_localization 0.1.1 copy "ht_localization: ^0.1.1" to clipboard
ht_localization: ^0.1.1 copied to clipboard

Support for Haitian language translation for flutter applications.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:ht_localization/ht_localization.dart';

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

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

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      title: 'Flutter Demo',
      supportedLocales: [
        Locale('ht', ''), // Haitian Creole
      ],
      localizationsDelegates: [
        // ... app-specific localization delegate[s] here
        ...HTLocalizations.delegates
      ],
      home: MyHomePage(title: 'Flutter Demo Home Page'),
    );
  }
}

class MyHomePage extends StatelessWidget {
  const MyHomePage({super.key, required this.title});

  final String title;

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(title),
      ),
      body: Container(
          // Your app code goes here.
          ),
    );
  }
}
3
likes
50
points
27
downloads

Publisher

verified publisherlouismidson.me

Weekly Downloads

Support for Haitian language translation for flutter applications.

Repository (GitHub)
View/report issues

License

BSD-3-Clause (license)

Dependencies

flutter, flutter_localizations, intl, plugin_platform_interface

More

Packages that depend on ht_localization