Would this be possible with autocomplete?
I have this idea to use autocomplete for working with web translation system. All translation system items key -> value pairs are stored in mysql. I would export them to a file and then in PhpStorm when I call my translation method it would autocomplete from existing translations strings. Story behind this is while developing new things, I dont know what keys I have used previously and maybe similar translation already exists. So with this autocomplete I would avoid inserting new key and need to translate it again.
Please sign in to leave a comment.
Hello,
Could you share some detailed code example? Like where you need it and what exactly would it do and why?
I have basic function which returns translated string. <?= translate_this('translation key'); ?>
I would like for autocomplete to work on translation key, return matching keys that I have registered previously. It would prevent adding similar key and need to translate it again.