zfcampus / zf-api-problem

BSD 3-Clause "New" or "Revised" License
27 stars 26 forks source link

API Problem translation based on Accept-Language? #40

Open twmobius opened 8 years ago

twmobius commented 8 years ago

I was wondering, would it make sense for apigiliy and api-problem in general to support a translator service, so as to translate all messages in the ApiProblem response based on the Accept-Language HTTP header?

This way in theory a multilingual rest client could get different error messages per language set in the request.

What do you think is the best way to go about it?

weierophinney commented 4 years ago

This repository has been closed and moved to laminas-api-tools/api-tools-api-problem; a new issue has been opened at https://github.com/laminas-api-tools/api-tools-api-problem/issues/3.