搜尋套件、儲存庫與 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 項

原始碼儲存庫

使用此套件的專案