openpilot icon indicating copy to clipboard operation
openpilot copied to clipboard

[$100 bounty] Script for doing UI translations with an LLM

Open adeebshihadeh opened this issue 1 year ago • 3 comments

Use an LLM (either OpenAI API or something local) to generate UI translations: https://github.com/commaai/openpilot/tree/master/selfdrive/ui/translations.

  • local is preferred if possible (GPU required is fine), but we can use GPT4 if the translations are actually better
  • there should be a flag for either doing all the translations or just filling in the unfinished ones

adeebshihadeh avatar Jan 02 '24 00:01 adeebshihadeh

Hi @adeebshihadeh , can you explain this a little bit more? What exactly do we need to implement?

hritikmunde avatar Jan 02 '24 09:01 hritikmunde

@adeebshihadeh I uploaded an example of automatic translation (currently using OpenAI) from an xml language file: https://gist.github.com/meirdev/fb63baa36dcaceebe7c74db07e9c339e

meirdev avatar Jan 02 '24 12:01 meirdev

@meirdev would you like to open a PR fully-implemented? It should be a script you can run to fill in missing translations, or replace the entire file, for each language in https://github.com/commaai/openpilot/blob/master/selfdrive/ui/translations/languages.json

sshane avatar Jan 02 '24 22:01 sshane