Skip to content

Commit

Permalink
fix: remove var
Browse files Browse the repository at this point in the history
  • Loading branch information
laske185 committed Apr 17, 2024
1 parent a3a4bd7 commit ba19fb1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/components/src/core/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ interface ITranslationOptions {

// String.replaceAll should be used but is only available with ECMAScript 2021.
const replaceAll = function (text: string, search: string, replacement: string) {
var target = text;
return target.split(search).join(replacement);
return text.split(search).join(replacement);
};

type Resources = Map<string, string>;
Expand Down

0 comments on commit ba19fb1

Please sign in to comment.