Skip to content

Flutter desktop application for generating JSON file and Localekeys class from Excel file or Google sheet. Using along with easy_localization package.

Notifications You must be signed in to change notification settings

chunlee-thong/localization_generator

Repository files navigation

Localization Generator

Generate json localization file from excel sheet

This app is intended to use to easy_localization package, but you can aslo use it with another localization package with json base file.

How to use

  • Create sheet data structure like below or you can check file translation_example.xlsx in this repo
Key en-US km-KH es-ES th-TH vi-VN
title Title ចំណងជើង titulo dgh dfghjk
buy_account Buy Account ទិញគណនី comprar cuenta sfgg evsd
cancel Cancel បោះបង់ asdfaf add dfrw
  • Open this app and input all required field:

    • project name: unique name for your project history
    • excel file: path to your excel file
    • json path: path where you want to save your json files
    • locale key path: path where you want to save your LocaleKeys class
  • you will get json files base on many languages you define in your excel file in a key row

  • a static class LocaleKeys to access your json key.

Usage

Using with easy_localization package: Text(LocaleKeys.title.tr())

Screenshot

alt text

Build a MacOS

  • notarize the app with command line or xcode archive

Wrapping

  • DMG: hdiutil create -volname LocalizationGenerator -srcfolder "Localization Generator" -ov -format UDBZ localization_generator_macos_3.1.0.dmg

Localization Generator

  • Author: Chunlee Thong
  • Contributor: Chunlee Thong

Copyright (c) 2022 Chunlee Thong

About

Flutter desktop application for generating JSON file and Localekeys class from Excel file or Google sheet. Using along with easy_localization package.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published