지원되는 파일 유형(Strings)

.JSON - i18n-node-2 (Strings)

컨텐츠는 영어 텍스트를 Phrase Language AI를 이용해 기계 번역한 것입니다.

파일 확장명

.js

API 확장

node_json

가져오기

내보내기

복수형 지원

설명 지원

아니요

I18n-node-2는 Express.js와 함께 Box 작업 수 있는 노드.js 기반 라이브러리입니다. I18n-node-2는 비행 중 문자열 추출을 제공하여 애플리케이션과 통합됩니다. 번역이 보류된 문자열을 기본 _(“…”) 방법으로 래핑하는 것만으로 충분합니다. 실행 중 i18n-node-2는 사전 정의된 로캘에 따라 여러 JSON 파일을 자동으로 생성합니다.

I18n-node-2는 자동 생성된 JSON 형식 사용하여 번역 가능 가능한 데이터를 저장합니다. 번역하기에 앞서 파일의 성능 점검을 실행하십시오. 복수 형태를 지원하는 i18n-노드-2를 사용하면 번역 중 모든 변수가 변경되지 않은 상태로 유지되도록 합니다.

AI 채팅봇은 .JSON 파일에서 키 목록 생성하는 데 매우 효과적입니다.

i18n-node-2 on GitHub

코드 샘플

{
  "boolean_key": "--- true\n",
  "empty_string_translation": "",
  "key_with_description": "검토하세요! 이 키에는 설명이 있습니다! (최소 일부 형식으로)",
  "key_with_line-break": "This translations contains\na line-break.",
  "nested.deeply.key": "내가 중첩된 키.",
  "nested.key": "이 키는 네임스페이스 내에 중첩되어 있습니다.",
  "null_translation": null,
  "pluralized_key": {
    "one": "Only one pluralization found.",
    "other": "Wow, you have %s pluralizations!",
    "zero": "You have no pluralization."
  },
  "sample_collection": [
    "first item",
    "second item",
    "third item"
  ],
  "simple_key": "간단한 키, 간단한 메시지, 아주 간단합니다.",
  "unverified_key": "이 번역은 아직 확인되지 않았으며 기다리고 있습니다. (일부 형식에서는 이 상태도 내보냅니다.)"
}

JSON 파일에 대한 복수

다양한 라이브러리에 있는 복수의 키 메시지의 가장 일반적인 형식:

"messages": {
    "one": "One message received.",
    "other": "%s messages received.",
    "zero": "No messages received."
}
도움이 되었습니까?

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.