Skip to content

Commit

Permalink
Fixed JS CS
Browse files Browse the repository at this point in the history
  • Loading branch information
maelanleborgne committed Jul 2, 2024
1 parent 108ed58 commit e0be201
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Translator/assets/src/translator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ import { format } from './formatters/formatter';
let _locale: LocaleType | null = null;
let _localeFallbacks: Record<LocaleType, LocaleType> = {};

let _registeredTranslations: RegisteredTranslationsType = {};
const _registeredTranslations: RegisteredTranslationsType = {};

export function setLocale(locale: LocaleType | null) {
_locale = locale;
Expand Down Expand Up @@ -183,7 +183,7 @@ export function registerDomain(domainTranslations: RegisteredTranslationsType) {

function getRegisteredMessage(key: string, domain: string): Message<TranslationsType, LocaleType>
{
let message: Message<TranslationsType, LocaleType> = {id: key, translations: {}};
const message: Message<TranslationsType, LocaleType> = {id: key, translations: {}};

for (const domainName of [domain, domain+'+intl-icu']) {
if (typeof _registeredTranslations[domainName] === 'undefined') {
Expand Down

0 comments on commit e0be201

Please sign in to comment.