mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-14 13:00:45 +08:00
We're moving the `_destroy` logic for localizations to the backend. The
`updateCategory` API should look something like this:
```
# Scenario: edit italian, add japanese, delete spanish (just exclude from list)
# PUT /categories/4
{
"name": "General",
"slug": "general",
"color": "25AAE2",
# ...
"category_localizations": [
{
"id": 102
"locale": "it",
"name": "generale",
"description": "Si prega di creare qui argomenti che non rientrano in altre categorie esistenti."
}
{
"locale": "ja",
"name": "一般",
"description": "他の既存のカテゴリに該当しないトピックをここに作成してください。"
}
]
}
```
|
||
|---|---|---|
| .. | ||
| json | ||
| schema_loader.rb | ||