借助 Sketch 的 Crowdin 插件,您可以在设计中使用 Crowdin 中的文本,为设计师和开发人员节省时间。 这些文件可包括原文或翻译文本。 如有必要,您可以添加新的内容(例如对话标题,按钮标签),并发送给在 Crowdin 的翻译人员。
You can download the latest release from our GitHub repository.
Crowdin plugin for Sketch can also be installed with Sketch Runner.
要在 Sketch 中指定您的 Crowdin 凭据,请按照以下步骤:
要在 Crowdin 中生成新的令牌,请遵循以下步骤:
To select the project you’d like to work with, click the Select Project drop-down menu in Settings, and select a project from the list. 稍后,您可以在需要时使用同一下拉菜单切换到另一个项目。 此外,您可以将您的内容上传到选定的特定分支。
Use the Strings tab when localizing UI and working on dynamic pages with your development and marketing teams. 在此选项卡中,您可以通过点击将来自 Crowdin 的源字符串添加到 Sketch 中的设计中。 在设计中使用文本后,您可以自动上传标记的屏幕截图到 Crowdin,为翻译员做参考。
在设计中使用 Crowdin 的源字符串后,您可以在 Sketch 中预览这些字符串的翻译,并将它们上传屏幕截图到您的 Crowdin 项目。
You can add the strings that are already used in the designs or create and add completely new strings.
在 Crowdin 中为多个文件添加相同的字符串,或者从下拉菜单 文件 中选择所需的文件。
如果某些艺术板包含不应添加到 Crowdin 的隐藏元素,请清除 推送隐藏元素 选项。
添加的字符串将传输到您的 Crowdin 项目,并显示在字符串选项卡的列表中。 您可以随时从同一列表中编辑或删除字符串。 相应的更改也将应用于您的 Crowdin 项目中的字符串。
简化从 Sketch 添加到 Crowdin 项目的字符串, 您可以在插件设置中为源字符串标识符设置所需的键命名模式。 The Crowdin plugin for Sketch will suggest the string identifiers for new strings based on the selected pattern. 添加新的源字符串时,您始终可以将建议的标识符编辑为首选外观。
要选择键命名模式,请按照下列步骤操作:
要了解更多信息,请阅读文章屏幕截图。
预览来自 Crowdin 的 Sketch 设计中使用的字符串的翻译。 You can preview translations in the new frames or the original ones. When previewing translations in the new frames, you can populate them with the actual translations or with string keys for further use by developers.
要预览带有翻译的字符串,请遵循如下步骤:
要预览用键名称填充的字符串,请按照下列步骤操作:
Use the Translation tab to localize static pages, like brochures and banners. 在这个选项卡中,您可以向 Crowdin 发送翻译文本,并将翻译文本上传回 Sketch。
You can send text for translation either from selected or all artboards from a Sketch file. 翻译员将在列表视图中处理这些文本,并使用设计作为附加语境,以实现更高的翻译质量。
在Crowdin中,将创建一个根文件夹Sketch plugin。 It will contain a subfolder named after your Sketch file with HTML files for each artboard inside. If needed, you can disable content segmentation in the plugin Settings so the long texts will not be split into sentences.
To send Sketch designs for translation, follow these steps:
当源文件上传到您的 Crowdin 项目时,您可以邀请贡献者翻译和校验它们。
详细了解翻译策略。
每当您想要在 Sketch 中测试翻译后的副本或生成多语言资源时,您都可以在 Sketch 和 Crowdin 项目之间同步文本。
To upload translated copies to Sketch, follow these steps:
After uploading translations to Sketch, the modified file will contain a separate artboard with translations for each target language. 新上传的翻译版本不会覆盖您之前上传的版本。 您可以随时删除不再需要的翻译副本。
如果您希望新上传的翻译版本覆盖之前上传的翻译版本,请打开插件设置并选择覆盖现有翻译。