Parent: #4
Delivers functions for exporting and importing localization data for CurseForge projects. This is a niche feature primarily used by World of Warcraft addon authors for managing localized strings.
Acceptance criteria:
Endpoints:
| Function |
Method |
Path |
Export-CurseForgeLocalization |
GET |
/api/projects/{projectId}/localization/export |
Import-CurseForgeLocalization |
POST |
/api/projects/{projectId}/localization/import |
Export parameters:
| Parameter |
Values |
Default |
| ExportType |
Table, TableAdditions, GlobalStrings |
TableAdditions |
| Language |
enUS, deDE, esES, etc. |
enUS |
| Unlocalized |
ShowPrimary, ShowPrimaryAsComment, ShowBlankAsComment, Ignore |
ShowPrimary |
| TableName |
any string |
L |
| EscapeNonAsciiCharacters |
bool |
false |
| TrueIfValueEqualsKey |
bool |
false |
| ConcatenateSubNamespaces |
bool |
false |
| Namespaces |
comma-delimited names |
Base Namespace |
Import payload:
{
"metadata": {
"language": "enUS",
"namespace": "toc",
"formatType": "TableAdditions",
"missing-phrase-handling": "DoNothing"
},
"localizations": "string content to import"
}
Blocked by: #11 (needs Upload API client)
Sub-issues
See linked Tasks below.
Parent: #4
Delivers functions for exporting and importing localization data for CurseForge projects. This is a niche feature primarily used by World of Warcraft addon authors for managing localized strings.
Acceptance criteria:
Export-CurseForgeLocalizationexports localization data with full parameter support (ExportType, Language, Unlocalized handling, TableName, Namespaces, etc.)Import-CurseForgeLocalizationimports localization data via JSON payloadEndpoints:
Export-CurseForgeLocalization/api/projects/{projectId}/localization/exportImport-CurseForgeLocalization/api/projects/{projectId}/localization/importExport parameters:
Import payload:
{ "metadata": { "language": "enUS", "namespace": "toc", "formatType": "TableAdditions", "missing-phrase-handling": "DoNothing" }, "localizations": "string content to import" }Blocked by: #11 (needs Upload API client)
Sub-issues
See linked Tasks below.