summaryrefslogtreecommitdiff
path: root/ext/js/language
diff options
context:
space:
mode:
Diffstat (limited to 'ext/js/language')
-rw-r--r--ext/js/language/ja/japanese-wanakana.js (renamed from ext/js/language/japanese-wanakana.js)6
-rw-r--r--ext/js/language/ja/japanese.js (renamed from ext/js/language/japanese.js)4
-rw-r--r--ext/js/language/translator.js4
3 files changed, 7 insertions, 7 deletions
diff --git a/ext/js/language/japanese-wanakana.js b/ext/js/language/ja/japanese-wanakana.js
index b48ab6d6..32260489 100644
--- a/ext/js/language/japanese-wanakana.js
+++ b/ext/js/language/ja/japanese-wanakana.js
@@ -15,11 +15,11 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
-import * as wanakana from '../../lib/wanakana.js';
+import * as wanakana from '../../../lib/wanakana.js';
/**
* @param {string} text
- * @param {?import('../general/text-source-map.js').TextSourceMap} sourceMap
+ * @param {?import('../../general/text-source-map.js').TextSourceMap} sourceMap
* @param {number} sourceMapStart
* @returns {string}
*/
@@ -84,7 +84,7 @@ export function convertToRomaji(text) {
/**
* @param {string} text
- * @param {?import('../general/text-source-map.js').TextSourceMap} sourceMap
+ * @param {?import('../../general/text-source-map.js').TextSourceMap} sourceMap
* @returns {string}
*/
export function convertAlphabeticToKana(text, sourceMap = null) {
diff --git a/ext/js/language/japanese.js b/ext/js/language/ja/japanese.js
index 88eb5af5..a4508040 100644
--- a/ext/js/language/japanese.js
+++ b/ext/js/language/ja/japanese.js
@@ -539,7 +539,7 @@ export function convertNumericToFullWidth(text) {
/**
* @param {string} text
- * @param {?import('../general/text-source-map.js').TextSourceMap} [sourceMap]
+ * @param {?import('../../general/text-source-map.js').TextSourceMap} [sourceMap]
* @returns {string}
*/
export function convertHalfWidthKanaToFullWidth(text, sourceMap = null) {
@@ -705,7 +705,7 @@ export function distributeFuriganaInflected(term, reading, source) {
/**
* @param {string} text
* @param {boolean} fullCollapse
- * @param {?import('../general/text-source-map.js').TextSourceMap} [sourceMap]
+ * @param {?import('../../general/text-source-map.js').TextSourceMap} [sourceMap]
* @returns {string}
*/
export function collapseEmphaticSequences(text, fullCollapse, sourceMap = null) {
diff --git a/ext/js/language/translator.js b/ext/js/language/translator.js
index 334eb5b7..007a7d1e 100644
--- a/ext/js/language/translator.js
+++ b/ext/js/language/translator.js
@@ -18,8 +18,8 @@
import {applyTextReplacement} from '../general/regex-util.js';
import {TextSourceMap} from '../general/text-source-map.js';
-import {convertAlphabeticToKana} from './japanese-wanakana.js';
-import {collapseEmphaticSequences, convertHalfWidthKanaToFullWidth, convertHiraganaToKatakana, convertKatakanaToHiragana, convertNumericToFullWidth, isCodePointJapanese} from './japanese.js';
+import {convertAlphabeticToKana} from './ja/japanese-wanakana.js';
+import {collapseEmphaticSequences, convertHalfWidthKanaToFullWidth, convertHiraganaToKatakana, convertKatakanaToHiragana, convertNumericToFullWidth, isCodePointJapanese} from './ja/japanese.js';
import {LanguageTransformer} from './language-transformer.js';
/**