我目前使用的是一个能够在语言之间切换的吊舱。安装过程的一部分如下:
To support this new i18n syntax, Localize-Swift includes custom genstrings swift and python scripts.
Copy the genstrings file (either .swift or .py) into your project's root folder and run with
./genstrings.swift
or
python genstrings.py
This will print the collected strings in the terminal. Select and copy to your default Localizable.strings.
The swift genstrings includes the ability to specify excluded directories and files (by editing the script).我不熟悉字符串,也不知道作者指的是什么。我猜作者是指我的本地化字符串文件夹,但是当我在上面运行一个终端时,我得到了以下错误:
-bash: ./genstrings.swift: No such file or directory你知道这些指令是什么意思吗?
发布于 2016-08-25 21:38:14
我看你在用本地化-Swift。该项目中的自述文件表示,您需要将genstring.swift文件复制到项目的根中,并从命令行运行它。这对我有用。
https://stackoverflow.com/questions/38235849
复制相似问题