From 9f91c764c05c0ffe8fb3d514314f041d98795c1a Mon Sep 17 00:00:00 2001 From: windingwind <33902321+windingwind@users.noreply.github.com> Date: Thu, 20 Jul 2023 00:47:03 +0800 Subject: [PATCH] fix: locale.ts typo --- src/utils/locale.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/utils/locale.ts b/src/utils/locale.ts index f47734c..3680ded 100644 --- a/src/utils/locale.ts +++ b/src/utils/locale.ts @@ -42,7 +42,7 @@ function initLocale() { function getString(localString: string): string; function getString(localString: string, branch: string): string; function getString( - localString: string, + localeString: string, options: { branch?: string | undefined; args?: Record }, ): string; function getString(...inputs: any[]) { @@ -60,10 +60,10 @@ function getString(...inputs: any[]) { } function _getString( - localString: string, + localeString: string, options: { branch?: string | undefined; args?: Record } = {}, ): string { - const localStringWithPrefix = `${config.addonRef}-${localString}`; + const localStringWithPrefix = `${config.addonRef}-${localeString}`; const { branch, args } = options; const pattern = addon.data.locale?.current.formatMessagesSync([ { id: localStringWithPrefix, args },