3 ms·
Yesterday I asked it to generate i18n translations in a dozen languages for a few words in my app, in a specific syntax for React Native localization support. I
by adamhp 3y ago
Yesterday I asked it to generate i18n translations in a dozen languages for a few words in my app, in a specific syntax for React Native localization support. I have a pretty simple app I'm building with a few UIs, so only needed to translate a few words, but I basically just made my app shippable to a dozen other languages with a simple ask to ChatGPT. I'm not really an evangelist. It suits specific use cases well, and does require some learning and some engineering. I think people are expecting to say "Solve this very complex problem for me by yourself" and giving it a terrible prompt and then blaming it. It requires the same level of creativity that programming does. You have to think about what to ask it, and it what way. Once you get the hang of that, it's pretty powerful.
In my example I said "I'm trying to translate my React Native app into multiple languages. I need an object that looks like this: <example JS code>. Can you generate this object for French, German, <insert more languages>, and for the following words: <words I needed>."
Luckily I know basics in a few languages and the words were simple enough that I could easily verify it wasn't a hallucination. I also know enough JavaScript to know that it was syntactically sound, but my IDE would've told me if it wasn't.