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

Hard code check #2376

Open
SixSheeppp opened this issue Dec 15, 2020 · 5 comments
Open

Hard code check #2376

SixSheeppp opened this issue Dec 15, 2020 · 5 comments
Labels
lint-request type-enhancement A request for a change that isn't a bug

Comments

@SixSheeppp
Copy link

I am going to make Flutter project more international.

Docs: https://flutter.dev/docs/development/accessibility-and-localization/internationalization

But in this way, I have to check thousands of lines in source code.
ex: Text("hello world")

So a rule to help check hard code is kind to developer :)

It should work like this.
The hard code should be defined in cn_localization.dart

image

@SixSheeppp SixSheeppp added type-enhancement A request for a change that isn't a bug lint-request labels Dec 15, 2020
@pq
Copy link
Member

pq commented Dec 15, 2020

@kevmoo @davidmorgan

@amr-eniou-3r
Copy link

any updates?

@amr-eniou-3r
Copy link

amr-eniou-3r commented Jun 8, 2021

reference flutter/flutter#42227

@dpss77
Copy link

dpss77 commented Nov 28, 2021

Hi, any update?

@dpss77
Copy link

dpss77 commented Nov 28, 2021

I found this as workaround, it's not perfect but it helps:
https://nabil6391.medium.com/easy-way-to-extract-all-strings-to-arb-in-flutter-777cf8365b15

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lint-request type-enhancement A request for a change that isn't a bug
Projects
None yet
Development

No branches or pull requests

4 participants