From 0792954e345925b3e3b2ebb733367e138375978e Mon Sep 17 00:00:00 2001 From: StefanVukovic99 Date: Tue, 27 Feb 2024 13:16:21 +0100 Subject: make deinflections language-specific (#720) * abstract deinflections * undo redundant changes * remove cast * MultiLanguageTransformer * comments * comments --- benches/language-transformer.bench.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'benches') diff --git a/benches/language-transformer.bench.js b/benches/language-transformer.bench.js index 8212ae86..071d5627 100644 --- a/benches/language-transformer.bench.js +++ b/benches/language-transformer.bench.js @@ -25,7 +25,7 @@ import {LanguageTransformer} from '../ext/js/language/language-transformer.js'; const dirname = path.dirname(fileURLToPath(import.meta.url)); /** @type {import('language-transformer').LanguageTransformDescriptor} */ -const descriptor = parseJson(fs.readFileSync(path.join(dirname, '..', 'ext', 'data/language/japanese-transforms.json'), {encoding: 'utf8'})); +const descriptor = parseJson(fs.readFileSync(path.join(dirname, '..', 'ext', 'js/language/ja/japanese-transforms.json'), {encoding: 'utf8'})); const languageTransformer = new LanguageTransformer(); languageTransformer.addDescriptor(descriptor); -- cgit v1.2.3