Problem:
Enabling content translation for the Alert Content-Type does not ensure proper translation of an Alert. The React app fetches data from the "/alerts" URL without passing a language parameter, which means Drupal cannot determine which node translation to return.
Solution:
Modify the REST Resource "/alerts" to check for a language prefix in the request URL. If a language prefix is present, the service should load and return the content in the corresponding translated language.
Problem:
Enabling content translation for the Alert Content-Type does not ensure proper translation of an Alert. The React app fetches data from the "/alerts" URL without passing a language parameter, which means Drupal cannot determine which node translation to return.
Solution:
Modify the REST Resource "/alerts" to check for a language prefix in the request URL. If a language prefix is present, the service should load and return the content in the corresponding translated language.