Coder Social home page Coder Social logo

pythonlanguagecopy's Introduction

文案转换

目录

  • IOS文案转换成Flutter文案( .arb文件)
  • Flutter文案( .arb文件)转换成Flutter多语言文案代码

一、IOS文案转换成Flutter文案( .arb文件)

1.python文件

LanguageIosStringCopyToFlutter.py

2.使用

python3 LanguageIosStringCopyToFlutter.py IOS返回文案的文件夹全路径

示例

python3 LanguageIosStringCopyToFlutter.py /Users/renyushuang/Downloads/PDF_v1.0.0_多语文案

注意:
全路径不能有空格

3.部分疑问

  • 生成目录 LanguageIosStringCopyToFlutter.py文件下的flutter文件夹
  • 如果已有部分文案想要进行新文案的添加,
    • 1.将已有文件拷贝到flutter文件夹下
    • 2.执行使用步骤便可进行叠加覆盖

二、Flutter文案( .arb文件)转换成Flutter多语言文案代码

1.Python文件

LanguageIosStringDart.py

2.使用

python3 LanguageIosStringDart.py 需要转换成dart的.arb文件

示例

python3 LanguageIosStringDart.py ./flutter/intl_zh.arb

结果示例

String setting_head_product_title( String arg0,) => Intl.message('{arg0}高级版',name:'setting_head_product_title',desc:'',locale:_localeName,args: [arg0,],);
String vertify_failed( String arg0,) => Intl.message('校验失败({arg0}),稍后重试',name:'vertify_failed',desc:'',locale:_localeName,args: [arg0,],);

沾入代码就可以了

pythonlanguagecopy's People

Contributors

renyushuang avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.