Skip to content

Commit

Permalink
fix: 用新域名
Browse files Browse the repository at this point in the history
  • Loading branch information
chenxuuu committed Nov 4, 2023
1 parent 53be9d7 commit 2082aaa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions translate-tool/translate-tool/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ static void Main(string[] args)
Path.GetExtension(file) == ".js")
{
var text = File.ReadAllText(file);
text = text.Replace("wiki.luatos.com", "openluat.github.io/luatos-wiki-en");
text = text.Replace("wiki.luatos.com", "wiki.luatos.org");
text = text.Replace("https://github.com/openluat/luatos-wiki", "https://github.com/openluat/luatos-wiki-en");
text = text.Replace("LuatOS团队", "LuatOS team");
text = text.Replace("评论区仅用于讨论文档内容。如有使用问题或新需求,请进支持群讨论或在官方仓库新建issue", "");
Expand Down Expand Up @@ -76,7 +76,7 @@ static void Main(string[] args)
translateFile = Path.ChangeExtension(translateFile, ".txt");
//翻译文件
var markdownText = File.ReadAllText(file);
markdownText = markdownText.Replace("wiki.luatos.com", "openluat.github.io/luatos-wiki-en");
markdownText = markdownText.Replace("wiki.luatos.com", "wiki.luatos.org");
var result = Parse.TranslateMarkdown(markdownText, (s) =>
{
return Translator.Translate(s, translateFile);
Expand All @@ -89,4 +89,4 @@ static void Main(string[] args)
Console.WriteLine("done");
}
}
}
}

0 comments on commit 2082aaa

Please sign in to comment.