esskar / vscode-flutter-i18n-json

VS Code extension to create a binding between your translations from .json files and your Flutter app.
92 stars 22 forks source link

Support for arrays #26

Closed JankoLancer closed 5 years ago

esskar commented 5 years ago

Hey, can you explain a little bit?

JankoLancer commented 5 years ago

Hi, with this PR now you can use json arrays in main json file. { "hello": "hello!", "greetings": [ "Hello", "Hi" ] }

Like a mention in README this section will generete code like this: /// ["Hello", "Hi"] List get greetings => ["Hello", "Hi"];

This is useful if we need for example array of months in different languages.

esskar commented 5 years ago

@JankoLancer will test everything and push to master asap