[]
        
(Showing Draft Content)

Language-Packages

Language-Packages

[GET] /api/v2/ui/common/language-packages

Get language packages based on the specified type.

Parameters

Name Type Located In Description
type LanguagePackageType query The package type to get. 1: Custom (default), 2: Official, 3: All

Response

Status Code: 200

Success

QueryLanguagePackagesResponseModel

Status Code: 400

Bad Request

CLPErrorRequestResult

[POST] /api/v2/ui/common/language-packages

Create a new custom language package

Request Schema

LanguagePackagePostModel

Response

Status Code: 200

Success

PackageResponseModel

Status Code: 400

Bad Request

CLPErrorRequestResult

[DELETE] /api/v2/ui/common/language-packages/{packageId}

Delete the custom language package according to the specified package id.

Parameters

Name Type Located In Description
packageIdRequired string path The package id to delete
forceDelete Boolean query Only use when you delete an official language package

Response

Status Code: 204

No Content

Status Code: 400

Bad Request

CLPErrorRequestResult

Status Code: 404

Not Found

CLPErrorRequestResult

[POST] /api/v2/ui/common/language-packages/upload

Response

Status Code: 200

Success

CustomLanguagePackageUploadModel

Status Code: 400

Bad Request

CLPErrorRequestResult

[POST] /api/v2/ui/common/language-packages/commit/{displayName}/{sessionId}

Commit an upload session to create a new custom language package

Parameters

Name Type Located In Description
displayNameRequired string path The display name of the new custom language package
sessionIdRequired string path The session id returned from the upload API

Response

Status Code: 200

Success

PackageResponseModel

Status Code: 400

Bad Request

CLPErrorRequestResult

Status Code: 404

Not Found

CLPErrorRequestResult

[POST] /api/v2/ui/common/language-packages/import

Import a custom language package

Response

Status Code: 200

Success

CustomLanguagePackageUploadModel

Status Code: 400

Bad Request

CLPErrorRequestResult

[POST] /api/v2/ui/common/language-packages/import/{sessionId}/submit

Submit an import session to create a new custom language package

Parameters

Name Type Located In Description
sessionIdRequired string path The session id returned from the import API

Response

Status Code: 200

Success

PackageResponseModel

Status Code: 400

Bad Request

CLPErrorRequestResult

Status Code: 404

Not Found

CLPErrorRequestResult

[POST] /api/v2/ui/common/language-packages/{packageId}/migrate

migrate the custom language package to the current production version

Parameters

Name Type Located In Description
packageIdRequired string path custom language package id

Response

Status Code: 204

No Content

Status Code: 400

Bad Request

CLPErrorRequestResult

Status Code: 404

Not Found

CLPErrorRequestResult

[POST] /api/v2/ui/common/language-packages/{packageId}/publish

publish draft

Parameters

Name Type Located In Description
packageIdRequired string path package id

Response

Status Code: 204

No Content

Status Code: 400

Bad Request

CLPErrorRequestResult

Status Code: 404

Not Found

CLPErrorRequestResult

[GET] /api/v2/ui/common/language-packages/supported-cultures

get all supported cultures of the current server node

Response

Status Code: 200

Success

SupportCultureViewModel

Status Code: 400

Bad Request

CLPErrorRequestResult

[GET] /api/v2/ui/common/language-packages/{packageId}/download

download some one language package (both official and custom)

Parameters

Name Type Located In Description
packageIdRequired string path the package id to download

Response

Status Code: 200

Success

binary

Status Code: 400

Bad Request

CLPErrorRequestResult

Status Code: 404

Not Found

CLPErrorRequestResult

[POST] /api/v2/ui/common/language-packages/{packageId}/export

Export the content of the language package

Parameters

Name Type Located In Description
packageIdRequired string path The package id

Request Schema

ExportPostModel

Response

Status Code: 200

Success

binary

Status Code: 400

Bad Request

CLPErrorRequestResult

Status Code: 404

Not Found

CLPErrorRequestResult

Models

Ƭ LanguagePackageType

Enum:

  • Custom
  • Official
  • All

Represents the types of language packages available in the system.

* Custom - 0 - Indicates a custom language package created by the user.
* Official - 1 - Indicates an official language package provided by the system.
* All - 2 - Indicates all types of language packages, both custom and official.

Ƭ QueryLanguagePackagesResponseModel

Represents a response model for querying language packages.

Name Type Description Example
languagePackagesNullable LanguagePackageViewModel The list of language packages returned from the query.

Ƭ LanguagePackageViewModel

Represents a language package view model containing details about a language package.

Name Type Description Example
idNullable string Gets or sets the unique identifier of the language package.
lang-package-123
languageCodeNullable string Gets or sets the language code of the language package.
en-US
nameNullable string Gets or sets the name of the language package.
English Language Package
displayNameNullable string Gets or sets the display name of the language package.
English
publishTime ISO DateTime Sting Gets or sets the publish time of the language package.
2023-10-01T12:00:00
createdTime ISO DateTime Sting Gets or sets the created time of the language package.
2023-10-01T12:00:00
modifiedTime ISO DateTime Sting Gets or sets the modified time of the language package.
2023-10-01T12:00:00
versionNullable string Gets or sets the version of the language package.
1.0.0
productVersionNullable string Gets or sets the product version associated with the language package.
6
isOfficial Boolean Gets or sets a value indicating whether the language package is official.
true
published Boolean Gets or sets a value indicating whether the language package is published.
false
hasDraft Boolean Gets or sets a value indicating whether the language package has a draft.
true
hasMigrated Boolean Gets or sets a value indicating whether the language package has been migrated.
false
referenceLanguageNullable string Gets or sets the reference language of the language package.
en
uploadTime ISO DateTime Sting Gets or sets the upload time of the language package.
2023-10-01T12:00:00
uploadByNullable string Gets or sets the user who uploaded the language package.
admin

Ƭ CLPErrorRequestResult

Custom language package error or warning response result

Name Type Description Example
warningsNullable CLPWarning warning of CLPErrorRequestResult
codeNullable string error code
messageNullable string error message
contextNullable string error context
innerError ServerPluginError

Ƭ CLPWarning

Represents a custom language package warning.

Name Type Description Example
codeNullable string Warning code.
W001
messageNullable string Warning message.
Invalid language code.
contextNullable string

Ƭ ServerPluginError

Server plugin error

Name Type Description Example
codeNullable string error code
messageNullable string error message
contextNullable string error context
innerError ServerPluginError

Ƭ PackageResponseModel

Represents a response model for a package.

Name Type Description Example
packageIdNullable string The unique identifier of the package.

Ƭ LanguagePackagePostModel

Model used to create a custom language package.

Name Type Description Example
displayName string Gets or sets the display name of the language package.
Custom Language Package
languageCode string Gets or sets the language code of the language package.
fr-FR
referenceLanguage string The language code of the language package to be referenced.
Attention: we will set the reference code of the created package to an official package.
This property specifies which language package to copy the content from.
en-US

Ƭ CustomLanguagePackageUploadModel

Represents a model for uploading a custom language package.

Name Type Description Example
sessionIdNullable string Gets or sets the session identifier for the upload.
session-123
warningsNullable UploadWarning

Ƭ UploadWarning

Represents a warning during the upload process.

Name Type Description Example
codeNullable string Gets or sets the warning code.
W002
messageNullable string Gets or sets the warning message.
File not found.

Ƭ SupportCultureViewModel

Represents a view model for supported cultures.

Name Type Description Example
codeNullable string Gets or sets the code of the culture.
en
nativeNameNullable string Gets or sets the native name of the culture.
English

Ƭ ExportPostModel

Represents a model for export operations.

Name Type Description Example
type ExportAndImportType
fileNamesNullable Array<string>

Ƭ ExportAndImportType

Enum:

  • Entire
  • Partial
  • UpgradationDiff