Added a new dependency for text translation and implemented a translation utility module. The deepl-node package enables the use of the DeepL API in the rogue-thi-app project, and the translation-utils.js file contains functions for translating text between different languages.
deepl-node addedto translate text with easeautumn of languages
Walkthrough
Add deepl-node package as a dependency to enable text translation (link)
Notes
Adds fallback translation if DeepL throws error
disables translations in development by default to prevent too many DeepL requests
uses official Node.js Client Library for the DeepL API instead of fetching
🤖 Generated by Copilot at ac6da31
Summary
🌐📦🛠️
Added a new dependency for text translation and implemented a translation utility module. The
deepl-node
package enables the use of the DeepL API in therogue-thi-app
project, and thetranslation-utils.js
file contains functions for translating text between different languages.Walkthrough
deepl-node
package as a dependency to enable text translation (link)Notes