Skip to content

Commit

Permalink
use 'with' keyword instead of 'assert'
Browse files Browse the repository at this point in the history
  • Loading branch information
achou11 committed Jan 22, 2025
1 parent 30cc3d8 commit f847931
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions scripts/build-intl-polyfills.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import fs from 'node:fs';
import {supportedLocales as relativeTimeFormatSupportedLocales} from '@formatjs/intl-relativetimeformat/supported-locales.generated.js';
import {supportedLocales as pluralRulesSupportedLocales} from '@formatjs/intl-pluralrules/supported-locales.generated.js';

import languages from '../src/frontend/languages.json' assert {type: 'json'};
import messages from '../translations/messages.json' assert {type: 'json'};
import languages from '../src/frontend/languages.json' with {type: 'json'};
import messages from '../translations/messages.json' with {type: 'json'};

build();

Expand Down
2 changes: 1 addition & 1 deletion scripts/build-translations.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import path from 'node:path';
import fs from 'node:fs';
import {readFile, writeFile} from 'node:fs/promises';

import LANGUAGE_NAME_TRANSLATIONS from '../src/frontend/languages.json' assert {type: 'json'};
import LANGUAGE_NAME_TRANSLATIONS from '../src/frontend/languages.json' with {type: 'json'};

const PROJECT_ROOT_DIR_PATH = new URL('../', import.meta.url).pathname;
const TRANSLATIONS_DIR_PATH = path.join(PROJECT_ROOT_DIR_PATH, 'translations');
Expand Down

0 comments on commit f847931

Please sign in to comment.