feat/fix/rf: add types, no api key handling in weather cmd, misc fixes

This commit is contained in:
Aidan 2025-04-29 20:02:18 -04:00
parent 19ce5295b1
commit 8de4f4067e
8 changed files with 84 additions and 47 deletions

View file

@ -7,8 +7,8 @@ const languageFiles = {
'en-gb': '../locales/english.json'
};
function getStrings(languageCode) {
const filePath = languageFiles[languageCode] || languageFiles['en'];
function getStrings(languageCode: string) {
const filePath: string = languageFiles[languageCode] || languageFiles['en'];
try {
return require(filePath);
} catch (error) {