Skip to content

[migration/ilib-js-to-dart] bump iLib to v15.0.0, minify locale JSON, and add ilib-assemble generator script - #96

Merged
gouniLee merged 4 commits into
migration/ilib-js-to-dartfrom
assemble-localeData
Aug 6, 2026
Merged

[migration/ilib-js-to-dart] bump iLib to v15.0.0, minify locale JSON, and add ilib-assemble generator script#96
gouniLee merged 4 commits into
migration/ilib-js-to-dartfrom
assemble-localeData

Conversation

@gouniLee

@gouniLee gouniLee commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Checklist

The following lists affects Pub Points on pub.dev when the package is published.

  • Passed the all tests.
  • Verified that the example app works.
  • Executed the dart format command.
  • Added the API description is added if necessary.

Upgrade the bundled iLib locale data from v14.22.0 to v15.0.0 and introduce a reproducible script for
regenerating assets/locale/ JSON using the published ilib-assemble CLI.

Changes

Locale data generator (scripts/assemble_ilib/)

  • Add generate_locale_json.sh — drives the ilib-assemble
    CLI with --mergeJson --splitByLocale to produce one JSON file per locale level (root, language, region,
    script)
  • Supports --ilib-version to pin a release, --ilib-path to reuse a local tree, --compressed for
    minified output, --dry-run for previewing without modifying assets
  • Downloads ilib from npm into a throwaway build/ directory (git-ignored) — no global install required
  • Add README documenting usage, options, and inputs (ilib-inc.js, locales.json)

iLib version bump (v14.22.0 → v15.0.0)

  • Regenerate all 252 assets/locale/*.json files with --compressed (minified, content unchanged except
    for upstream data updates from iLib v15.0.0)
  • Update getILibVersion in lib/flutter_ilib.dart
  • Update version references in CLAUDE.md and README.md

How to regenerate locale data

cd scripts/assemble_ilib
./generate_locale_json.sh --compressed  
(./generate_locale_json.sh --ilib-version 15.0.0 --compressed)

gouniLee added 3 commits July 29, 2026 17:00
New script that generates the hierarchical JSON locale files used by
the pure-Dart ILibLoader, using iLib's assembleData/assemble.mjs with
splitByLocale=true. Requires --ilib-path pointing to the local iLib
source tree (assembleData/assemble.mjs is not in the published npm
package). Updates README.md to document both scripts side-by-side.
…le CLI

Rework generate_locale_json.sh to drive the published ilib-assemble CLI
(--mergeJson --splitByLocale) instead of copying iLib's assemble.mjs out
of a required local source tree. ilib is now downloaded from npm by
default (--ilib-version to pin, --ilib-path to reuse an existing tree),
and a --compressed flag selects minified output.

Regenerate all assets/locale/*.json with --compressed: the committed
files are now minified (one line each). Content is unchanged — only the
whitespace differs.

Update the README to document the CLI-based flow and add a build/ +
node_modules/ .gitignore for the throwaway install dir.
@gouniLee
gouniLee requested a review from seonmiJin August 4, 2026 01:06
@gouniLee gouniLee self-assigned this Aug 4, 2026
Comment thread scripts/assemble_ilib/generate_locale_json.sh
Verify that js/locale/ exists when --ilib-path points to an iLib
source checkout. Without this directory (produced by 'ant build'),
ilib-assemble fails with cryptic errors. Exit early with a clear
message instructing the user to build iLib first.
@gouniLee
gouniLee requested a review from seonmiJin August 4, 2026 09:01
@gouniLee
gouniLee merged commit 27c549d into migration/ilib-js-to-dart Aug 6, 2026
1 check passed
@gouniLee
gouniLee deleted the assemble-localeData branch August 6, 2026 00:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants