Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add command to add an entry #27

Open
escamoteur opened this issue Sep 11, 2019 · 3 comments
Open

Add command to add an entry #27

escamoteur opened this issue Sep 11, 2019 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@escamoteur
Copy link

Hi,

I really like the idea of this plugin. What would it make perfect if you would add a VS code command that lets you add a new entry directly from the editor.

Like at the position where you want to add a new localized String you call the command Add localized String which would then ask for an identifier and the default text and then adds a new entry to the JSON file and add I18n.of(context).newEntryName at the cursor position.
That would improve productivity much.

Also one thought wouldn't it make more sense to express nested resources as Maps so that you can dynamically switch between them instead of long names?

Cheers
Thomas

@esskar esskar self-assigned this Sep 11, 2019
@esskar esskar added the enhancement New feature or request label Sep 26, 2019
@esskar
Copy link
Owner

esskar commented Sep 26, 2019

@escamoteur

Also one thought wouldn't it make more sense to express nested resources as Maps so that you
can dynamically switch between them instead of long names?

how is this possible for functions?

@escamoteur
Copy link
Author

How do you mean that?

@mrkpatchaa
Copy link

For reference, this plugin has the ability to add a new string directly from code editor...
https://github.com/long1eu/flutter_i18n
You can see a screenshot from my comment here : long1eu/flutter_i18n#63 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants