dart-lang / i18n

A general mono-repo for Dart i18n and l10n packages.
BSD 3-Clause "New" or "Revised" License
62 stars 36 forks source link

Using intl4x on io platform #869

Closed Dan-Crane closed 2 weeks ago

Dan-Crane commented 4 weeks ago

Hi! Thank you for your work ❤️

Tell me, does intl4x work on Android, iOS, Windows?

I didn't figure out how to connect the package to the project

mosuem commented 4 weeks ago

It should, here is the list of precompiled targets. The build hook of the package should download the right one, and everything should just work(*).

(*) It is currently in experimental, so it might not. Also, there is no treeshaking of the native (i.e. rust) yet, so the binary size might be quite large.

Dan-Crane commented 3 weeks ago

Could you please tell me how to run the build that will launch the hook?

mosuem commented 3 weeks ago

The hook/build.dart and hook/link.dart scripts are run automatically when running dart --enable-experiment=native-assets build bin/main.dart. Hopefully this will be out of experimental soon. Same holds for Flutter, see also https://github.com/flutter/flutter/issues/129757.

Dan-Crane commented 3 weeks ago

@mosuem thanks!)