secretsauceai / voice-assistant-protocol

A bus for voice assistants, including benchmarks.
BSD 3-Clause "New" or "Revised" License
5 stars 1 forks source link

Language negotiation strategy #17

Open sheosi opened 2 years ago

sheosi commented 2 years ago

In some cases the skills don't have the same locale that the server requested, in that case we need to negotiate. Remember, a locale consists of a language and a country, plus some other details.

Here are the strategies available in fluent-langneg (a Rust crate for language negotiation) (https://docs.rs/fluent-langneg/latest/fluent_langneg/negotiate/index.html):

sheosi commented 2 years ago

Personally I like the different region, same locale. But we would still need some fallback if languages are not compatible.