支持文件类型 (Strings)

.YAML - Ruby on Rails (Strings)

文本由 Phrase Language AI 从英语机器翻译而得。

文件扩展名

.yml、.yaml

API 扩展

yml

导入

导出

复数形式支持

描述支持

Ruby on Rails 是一个开源原文/源语框架,旨在简化使用 Ruby 编程语言开发网络应用程序的过程。Ruby on Rails 内置了本地化模块,使用 .YAML 作为标准文件格式""%1""(连同 RB)。

在翻译之前,对 .YAML 文件进行健全性检查,确保其符合所有 .YAML 约定,例如基于缩进的数据嵌套。

如果文件包含数组格式的键,编辑器会将翻译显示为字符串。确保译员不会更改语法,因为键类型没有内容验证。键类型可以在键设置中更改为“阵列”,以将其自动排除在翻译订单之外。

Rails i18n 指南

代码示例

---
英语:
  "boolean_key: true"
  empty_string_translation: ''
  key_with_description:看看!This key has a description!(至少在某些
    formats)
  key_with_line-break: |-
    此翻译包含
    换行符。
  "nested:
    Deeply:
      键:哇,这个键嵌套得更深。“哇,这个键嵌套得更深。”
    键:键嵌套在一个命名空间内。
  null_translation:
  pluralized_key:
    一:仅找到一个复数。
    其他:哇,您有 %s 个复数!
    "zero:您没有复数。
  sample_collection:
  - 第一项
  - 第二项
  - 第三项
  simple_key:简单的键与简单的信息。“简单的键与简单的信息。”,
  unverified_key:此翻译尚未验证并等待它。“此翻译尚未验证并等待它。(在一些
    格式,我们也导出此状态)
这篇文章有帮助吗?

Sorry about that! In what way was it not helpful?

The article didn’t address my problem.
I couldn’t understand the article.
The feature doesn’t do what I need.
Other reason.

Note that feedback is provided anonymously so we aren't able to reply to questions.
If you'd like to ask a question, submit a request to our Support team.
Thank you for your feedback.