Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Mastering DART
  • Table Of Contents Toc
Mastering DART

Mastering DART

By : Sergey Akopkokhyants
4.6 (5)
close
close
Mastering DART

Mastering DART

4.6 (5)
By: Sergey Akopkokhyants

Overview of this book

If you are an application developer who has experience with Dart and want to develop reusable and robust code in Dart, then this book is for you. You are expected to have a basic knowledge of core elements and applications.
Table of Contents (14 chapters)
close
close
13
Index

Extracting messages


Now, we have all the messages separated from the UI and we are ready for translation. We need to extract them from the source code into the external file with a special program called extract_to_arb.dart from the intl package, as shown in the following code:

pub run intl:extract_to_arb --output-dir=web web/registration_form.dart

The preceding program generates the intl_messages.arb file inside the specified web directory. This file contains all the messages in the ARB format. ARB is a localization resource format based on JSON. This format provides the following benefits:

  • Simplicity: This format is simple and human-readable because it is based on JSON

  • Extensibility: In this format, vocabulary can be added without affecting the existing tools and usage

  • Direct usability: Applications can access the resource directly from this format without converting them to another form

You can find more about the ARB format in the specification available at https://code.google.com/p/arb...

CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Mastering DART
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon