From 9ae5773d967d96bfd4becfee64fe0fb43dbfdccb Mon Sep 17 00:00:00 2001 From: Dark-LYNN Date: Fri, 3 Jan 2025 23:21:33 +0100 Subject: [PATCH] fix: Fixed i18n on main bot. --- src/i18n.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/i18n.ts b/src/i18n.ts index 1d957aa..69e662f 100755 --- a/src/i18n.ts +++ b/src/i18n.ts @@ -1,10 +1,10 @@ import fs from 'fs'; -import path from 'path'; +import path, { join } from 'path'; import yaml from 'js-yaml'; import { Translations } from './types'; -const BASE_PATH = '/media/lynnux/[E] Other/Codes/@Github/@LynnuxDev/AkiraLocalization'; +const BASE_PATH = join(process.cwd(), '..', '/AkiraLocalization'); /** * Loads a YAML translation file and retrieves the value for a given key.