搜索插件、代码仓与 APP 分类

flutter_translate 封面
插件详情v4.1.0

flutter_translate

Flutter Translate 是一个功能齐全的 Flutter 本地化/国际化(i18n)库。

AndroidiOSmacOSWindowsLinux
近 30 天下载
2740
喜欢数
271
Pub 分数
150

安装插件

flutter pub add flutter_translate

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

Flutter Translate 是一个为 Flutter 应用程序设计的全面本地化和国际化 (i18n) 库。它使开发者能够高效地管理多种语言的翻译,支持动态语言切换,并可轻松集成 JSON 翻译文件。该包通过提供直观的 API 来翻译文本、处理复数形式以及在运行时管理区域设置更改,简化了将应用程序适应全球用户的过程。它可在所有主要平台(包括 Android、iOS、macOS、Windows 和 Linux)上使用。

适合场景

  • 多语言应用支持
  • 动态语言切换
  • 基于JSON的翻译管理
  • 面向全球用户的App本地化
  • 运行时区域设置更新

主要特点

  • 支持 JSON 翻译文件
  • 无需重启的动态语言更改
  • 复数和性别处理
  • 与 Flutter 小部件轻松集成
  • 跨平台兼容性

适合对象

  • 全球移动和桌面应用
  • 需要频繁更新语言的应用程序
  • Flutter 国际化新手开发者
  • 具有复杂翻译需求的项目

使用建议

  • 需要手动设置翻译文件
  • 有限的内置翻译服务
  • No automatic translation from source
  • 最适合具有明确语言资源的项目
  • 可能需要额外的工具来实现大规模翻译

原始 README

以下为关联源码仓库的 README 原文快照,最新内容请访问源码仓库。

pub package Awesome Flutter License: MIT Flutter.io


Flutter Translate is a fully featured localization / internationalization (i18n) library for Flutter.

It lets you define translations for your content in different languages and switch between them easily.

Example

Features

  • Very easy to use
  • Mobile, Web and Desktop support
  • Pluralization and Duals support
  • Supports both languageCode (en) and languageCode_countryCode (en_US) locale formats
  • Automatically save & restore the selected locale with a simple implementation
  • Full support for right-to-left locales
  • Fallback locale support in case the system locale is unsupported
  • Supports both inline or nested JSON

Documentation

Complete documentation is available on the wiki page.

To get started please see Installation, Configuration & Usage.

Example

https://github.com/Jesway/Flutter-Translate/tree/master/example

Issues

Please file any issues, bugs or feature request here.

License

This project is licensed under the MIT License

所属分类

依赖

依赖清单 2 项

源码仓库

使用此插件的项目