Git Product home page Git Product logo

translator's Introduction

Translator - 快速集成多语言国际化

Build Status Xcode Xcode MIT

Translator 可以帮助你快速的将 .csv 表格内容转为 iOS/macOS 项目中对应国家的 . lproj 文件。

💻 要求

  • 运行在 macOS 10.13 及以上版本。

⚒ 安装

Release Page 下载最新版本。

🔑 使用

使用步骤:

  • 首先 设置存储目录
  • 然后 选择 .csv 文件(csv 内容格式请参考 app 生成的预览 csv);
  • 最后点击 开始解析 即可。

📝 预览

  • 主界面

  • 预览 csv 格式

.csv 格式文件也可由 .xls/.xlsx 转换得,例如在 mac App Store 搜索 WPS

这里的 Key 的前半部分作为解析时创建的 .lproj 文件夹名称,请确保为对应语言的缩写,例如 en(英文)

  • 解析结果,根据添加多少种语言,生成对应的 .lproj 文件夹。

  • 以下常量根据 .lproj 生成。

. localized 是一个 String 的扩展方法,如下所示:

extension String {
    var localized: String {
        return NSLocalizedString(self, comment: "")
    }
}

❓ 常见问题

  • 打不开“Translator”,因为它来自身份不明的开发者。

若遇到这个问题,打开终端,输入: sudo spctl --master-disable

  • ...

🖌 反馈

  • 如果以上功能并不能满足你的需求,可以下载源码进行修改并 Export app;
  • 如果你有更好的建议,可在本项目下提一个 Issue ,我会尝试根据你的需要新增功能;
  • 如果你有其他的想法,可以来一发:[email protected]

📄 License

Translator 遵循 GPL-3.0 协议进行发布。有关详细信息,见 License

translator's People

Contributors

jinxiansen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

translator's Issues

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.