Skip to content
This repository was archived by the owner on Jan 15, 2025. It is now read-only.

Refactor of LU parser and LU raw parse API #1285

Merged
merged 7 commits into from
Sep 21, 2021
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion packages/lu/src/parser/lu/lu.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
*/

const translateHelpers = require('./../lufile/translate-helpers')

const luOptions = require('./luOptions')
const luParser = require('./../lufile/luParser')

class Lu {
constructor(content, options = new luOptions){
Expand All @@ -22,6 +22,10 @@ class Lu {
}
}

parse(){
return luParser.parse(this.content, undefined, {});
}

async translate(translate_key, tgt_lang, translate_comments = false, translate_link_text = false, region = ''){
const translateSettings = new translateHelpers.translationSettings();
translateSettings.subscriptionKey = translate_key
Expand Down
Loading