Following the API documentation, this will enable CRUD operations for Article / Section / Category translations.
Notes:
Translation lookups use the locale, which needs to be passed in the id param to #find / #find! (ie. article.translations.find(id: 'fr-FR'))
The path for #destroy differs from the read paths for these objects, but I don't see a way to override the url used when deleting an object that wouldn't affect other actions. Curiously, the default #destroy seems to work on Article translations, but not for Section or Category translations. One workaround would be to modify the path in a block (see example below), open to suggestions / feedback on how to better address that 🙏🏼
Patch path issue when deleting translations
```ruby
translation = client.categories.translations.find(id: 'fr-FR')
translation.destroy do |req|
req.path = "#{client.config.url}/help_center/translations/#{translation.id}"
end
```
cc: @zendesk/i18n
Following the API documentation, this will enable CRUD operations for Article / Section / Category translations.
Notes:
locale
, which needs to be passed in theid
param to#find
/#find!
(ie.article.translations.find(id: 'fr-FR')
)#destroy
differs from the read paths for these objects, but I don't see a way to override theurl
used when deleting an object that wouldn't affect other actions. Curiously, the default#destroy
seems to work on Article translations, but not for Section or Category translations. One workaround would be to modify the path in a block (see example below), open to suggestions / feedback on how to better address that 🙏🏼Patch path issue when deleting translations
```ruby translation = client.categories.translations.find(id: 'fr-FR') translation.destroy do |req| req.path = "#{client.config.url}/help_center/translations/#{translation.id}" end ```