最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

How to refactor a string into a ARB resource in DartFlutter? - Stack Overflow

programmeradmin1浏览0评论

I am working on a legacy Flutter app which does not have translations.

I need to create many resource entries in the ARB file and then replace the text by AppLocalizations.of(context).something.

Is there a builtin refactoring which I can invoke that partially automates this for me? Ideally I still do it for each string separately, since not all strings must be translated.

I have tried:

  • right clicking on the string to find suitable actions
  • invoking the light bulb to find suitable actions
  • check the "Refactor" menu
发布评论

评论列表(0)

  1. 暂无评论