Skip to content

Commit

Permalink
remove workaround for korean lang
Browse files Browse the repository at this point in the history
  • Loading branch information
vemonet committed Aug 23, 2024
1 parent 2ef5795 commit d3a94d5
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,7 @@
// Load the emoji data from this repo, precompiled for different languages
try {
// ko/kr replace added to hot fix a mispelling in emoji-mart langs.
i18n = (
await import(`../../node_modules/@emoji-mart/data/i18n/${lang.replace('ko', 'kr')}.json`)
).default
// const i18n = (await import(`@emoji-mart/data/i18n/${lang}.json`)).default;
i18n = (await import(`@emoji-mart/data/i18n/${lang}.json`)).default;
data = (await import(`../data/${lang}.json`)).default
} catch (err) {
console.error(`Language ${lang} not supported, loading default`)
Expand Down

0 comments on commit d3a94d5

Please sign in to comment.