Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
kennethbruskiewicz committed Nov 21, 2023
1 parent c491354 commit 666fba1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/utils/i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import i18next from 'i18next';
import jqueryI18next from 'jquery-i18next';

import tags from 'language-tags';
import { flattenObject, deepMerge } from '@/lib/utils/objects';
import { flattenObject } from '@/lib/utils/objects';
import label_translations_file from '@/web/translations/translations.json';

// TODO: refactor to a package or list of codes
Expand Down
6 changes: 3 additions & 3 deletions web/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ import * as $ from 'jquery';
import i18n from 'i18next';
import { DataHarmonizer, Footer, Toolbar } from '@/lib';
import { initI18n } from '@/lib/utils/i18n';
import { Template, findBestLocaleMatch } from '@/lib/utils/templates';
import { flattenObject } from '@/lib/utils/objects';
import { Template } from '@/lib/utils/templates';

import menu from '@/web/templates/menu.json';
import tags from 'language-tags';
Expand Down Expand Up @@ -76,6 +75,7 @@ document.addEventListener('DOMContentLoaded', function () {

const enum_resource = consolidate(
translation.schema.enums,
/* eslint-disable */
(acc, [enum_symbol, { permissible_values }]) => {
for (const [enum_value, { text }] of Object.entries(
permissible_values
Expand All @@ -85,7 +85,7 @@ document.addEventListener('DOMContentLoaded', function () {
return acc;
}
);

/* eslint-enable */
const translated_sections = consolidate(
translation.schema.classes[template.default.schema.name].slot_usage,
(acc, [translation_slot_name, { slot_group }]) => ({
Expand Down

0 comments on commit 666fba1

Please sign in to comment.