지원되는 파일 유형(Strings)

.JSON - Nested (Strings)

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

파일 확장명

.json

API 확장

nested_json

가져오기

내보내기

복수형 지원

설명 지원

아니요

형식 옵션

enable_pluralization

중첩된 JSON은 값의 많은 부분이 다른 .JSON 객체를 가진 .JSON 파일입니다. Simple JSON과 비교해 Nested JSON은 객체를 다른 레이어로 분리하여 유지 관리가 용이해집니다. 키는 점으로 수준을 구분하여 저장됩니다. 내보내기를 하는 동안 모든 키가 다시 분할되어 중첩된 .JSON 구조로 렌더링됩니다.

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

형식 옵션

식별자

enable_pluralization

유형

부울

업로드

다운로드

아니요

기본값

true

설명

복수형 키 감지를 활성화합니다. 일치하는 모든 키는 복수형 키로 유지됩니다.

코드 샘플

{
  "boolean_key": "--- true\n",
  "empty_string_translation": "",
  "key_with_description": "검토하세요! 이 키에는 설명이 있습니다! (최소 일부 형식으로)",
  "key_with_line-break": "This translations contains\na line-break.",
  "nested": {
    "deeply": {
      "key": "Wow, 이 키 더 깊게 중첩되어 있습니다."
    },
    "key": "This key is nested inside a namespace."
  },
  "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": "이 번역은 아직 확인되지 않았으며 기다리고 있습니다. (일부 형식에서는 이 상태도 내보냅니다.)"
}

복수 형태

이 형식 기명된 범주를 사용하여 키 다양한 복수형을 식별합니다. 복수형에 대한 다음 범주는 예약되어 있습니다.

.zero | .one | .two | .few | .many | .other

올바르게 식별되고, 지속되고, 표시된 복수형 키의 예시명:

  • inbox.messages.notification.one

  • inbox.messages.notification.other

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.