我目前正在使用有助于在不同语言之间切换的广告连播。部分安装过程如下:

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).


我不熟悉genstrings,也不太了解作者在指什么。我猜作者是指我的本地化字符串文件夹,但是当我在其上运行终端时出现此错误:

-bash: ./genstrings.swift: No such file or directory


知道指示是什么意思吗?

最佳答案

我看到您正在使用Localize-Swift。该项目中的自述文件指出,您需要将genstring.swift文件复制到项目的根目录中,然后从命令行运行它。这对我行得通。

10-04 23:29