st.clair.clarke
st.clair.clarke

Reputation: 61

Dart layout convention regarding internationalization bundles

Is there a recommended best practice regarding the darts folder layout convention regarding internationalization bundles and folder within the dart project hierarchy?

Upvotes: 0

Views: 82

Answers (2)

Alan Knight
Alan Knight

Reputation: 2971

Not that I'm aware of. The way the Intl library works for messages is that it generates them into separate libraries. Right now they're all loaded, but once lazy loading works a bit better we expect to use that to load only the ones you need. If they're in libraries, then it doesn't really matter where the code is as long as it's visible. If you're using some other mechanism, then whatever the layout convention is for that system is probably what to follow.

Upvotes: 0

AhmadDani
AhmadDani

Reputation: 251

You may use intl library.

Open your pubspec.yaml file and add "intl : any" (without double quote). And save or run pub install.

You may read intl library API reference at http://api.dartlang.org/docs/bleeding_edge/intl.html

Upvotes: 1

Related Questions