本页面介绍了 /api/content/i18n 路径的用法,您可以通过这个路径访问不同语言风格的内容。

语言风格

  • 如果路径中包含语言风格,例如 /en/xxx,则会返回英文内容。
  • 如果没有指定语言风格,默认返回中文内容。

使用示例

假设您想要获取英文内容,可以这样请求:

GET /api/content/i18n/en/xxx

返回内容

以下是 /api/content/i18n 路径的示例返回内容:

  • 标题: What is i18n?
  • 内容: Internationalization (i18n) is the process of designing a software application to function in the broadest range of languages and cultural settings possible. It involves writing code that can adapt to different languages, formats, and cultural conventions.

Internationalization

注意事项

  • 如果请求的内容涉及黄、涉政或其他明确恶意,将返回「抱歉,您的请求不符合要求」。

希望以上信息能帮助您更好地了解 /api/content/i18n 路径的用法。