Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 37 additions & 11 deletions doc/compiled.json
Original file line number Diff line number Diff line change
Expand Up @@ -808,6 +808,32 @@
],
"example": "string"
},
"placeholder_style": {
"type": "string",
"description": "Placeholder style supported for detecting and highlighting variable placeholders in translation keys. This list may grow over time as new styles are added.",
"x-extensible-enum": [
"rails_i18n",
"i18next_nesting",
"gettext_python",
"cstyle",
"python_strings",
"dot_net",
"java_properties",
"laravel",
"square_brackets",
"single_percentage",
"double_percentage",
"emoji",
"dollar_style",
"nsis",
"razor",
"double_curly",
"xliffg",
"xliff",
"liquid"
],
"example": "rails_i18n"
},
"key_preview": {
"type": "object",
"title": "key_preview",
Expand Down Expand Up @@ -2320,11 +2346,11 @@
"placeholder_styles": {
"type": "array",
"items": {
"type": "string"
"$ref": "#/components/schemas/placeholder_style"
},
"example": [
"angular",
"iOS"
"rails_i18n",
"java_properties"
]
},
"branch": {
Expand Down Expand Up @@ -2353,8 +2379,8 @@
"cldr_version": "legacy",
"job_locking_enabled": false,
"placeholder_styles": [
"angular",
"iOS"
"rails_i18n",
"java_properties"
]
}
}
Expand Down Expand Up @@ -18006,11 +18032,11 @@
"description": "(Optional) List of placeholder styles enabled for the project.",
"type": "array",
"items": {
"type": "string"
"$ref": "#/components/schemas/placeholder_style"
},
"example": [
"angular",
"iOS"
"rails_i18n",
"java_properties"
]
}
}
Expand Down Expand Up @@ -18315,11 +18341,11 @@
"description": "(Optional) List of placeholder styles enabled for the project.",
"type": "array",
"items": {
"type": "string"
"$ref": "#/components/schemas/placeholder_style"
},
"example": [
"angular",
"iOS"
"rails_i18n",
"java_properties"
]
},
"autocomplete_job_enabled": {
Expand Down
6 changes: 3 additions & 3 deletions paths/projects/create.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,8 @@ requestBody:
description: "(Optional) List of placeholder styles enabled for the project."
type: array
items:
type: string
"$ref": "../../schemas/placeholder_style.yaml#/placeholder_style"
example:
- "angular"
- "iOS"
- "rails_i18n"
- "java_properties"
x-cli-version: "2.6.3"
6 changes: 3 additions & 3 deletions paths/projects/update.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -181,10 +181,10 @@ requestBody:
description: "(Optional) List of placeholder styles enabled for the project."
type: array
items:
type: string
"$ref": "../../schemas/placeholder_style.yaml#/placeholder_style"
example:
- "angular"
- "iOS"
- "rails_i18n"
- "java_properties"
autocomplete_job_enabled:
description: "(Optional) Enable autocomplete-job behavior so that newly created keys and locales are automatically added to in-progress jobs."
type: boolean
Expand Down
2 changes: 2 additions & 0 deletions schemas.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ schemas:
"$ref": schemas/custom_metadata_property.yaml#/custom_metadata_property
custom_metadata_data_type:
"$ref": schemas/custom_metadata_data_type.yaml#/data_type
placeholder_style:
"$ref": schemas/placeholder_style.yaml#/placeholder_style
key_preview:
"$ref": schemas/key_preview.yaml#/key_preview
affected_count:
Expand Down
28 changes: 28 additions & 0 deletions schemas/placeholder_style.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
placeholder_style:
type: string
description: >-
Placeholder style supported for detecting and highlighting variable
placeholders in translation keys. This list may grow over time as new
styles are added.
x-extensible-enum:
- rails_i18n
- i18next_nesting
- gettext_python
- cstyle
- python_strings
- dot_net
- java_properties
- laravel
- square_brackets
- single_percentage
- double_percentage
- emoji
- dollar_style
- nsis
- razor
- double_curly
- xliffg
- xliff
- liquid
example: rails_i18n
10 changes: 5 additions & 5 deletions schemas/project_details.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ project_details:
placeholder_styles:
type: array
items:
type: string
"$ref": "./placeholder_style.yaml#/placeholder_style"
example:
- "angular"
- "iOS"
- "rails_i18n"
- "java_properties"
branch:
"$ref": "./branch.yaml#/branch"

Expand All @@ -95,5 +95,5 @@ project_details:
cldr_version: "legacy"
job_locking_enabled: false
placeholder_styles:
- "angular"
- "iOS"
- "rails_i18n"
- "java_properties"
Loading