Skip to content

Commit

Permalink
add json assertion to extraTerms
Browse files Browse the repository at this point in the history
  • Loading branch information
twelch committed May 17, 2024
1 parent 95c661d commit 4ae974d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/geoprocessing/src/i18n/bin/publishTerms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import * as path from "path";
import { promisify } from "util";
import config from "../config.json";
import languages from "../supported.js";
import extraTerms from "../extraTerms.json";
import extraTerms from "../extraTerms.json" with { type: "json" };

const post = promisify(request.post);

Expand Down
2 changes: 1 addition & 1 deletion packages/geoprocessing/src/i18n/i18nAsync.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createInstance } from "i18next";
import { initReactI18next } from "react-i18next";
import extraTerms from "./extraTerms.json";
import extraTerms from "./extraTerms.json" with { type: "json" };
import languages from "./supported.js";

const defaultLang = "en";
Expand Down

0 comments on commit 4ae974d

Please sign in to comment.