move i18n/exceptions.go to crawler directory

This commit is contained in:
perennial
2024-10-15 21:39:00 +11:00
parent e174d63bdc
commit 1d78a2da7b
2 changed files with 2 additions and 4 deletions
@@ -1,7 +1,7 @@
// This file contains a map of strings that should be ignored by the i18n crawler,
// such as empty strings, symbols, and template syntax that should remain unchanged
// across all locales.
package i18n
package main
var IgnoreTheseStrings = map[string]bool{
"": true,
+1 -3
View File
@@ -15,8 +15,6 @@ import (
"github.com/soluble-ai/go-jnode"
"github.com/yargevad/filepathx"
"golang.org/x/net/html"
"codeberg.org/vnpower/pixivfe/v2/i18n"
)
func main() {
@@ -87,7 +85,7 @@ func processFile(filename string, result *jnode.Node) {
// manual filter
func shouldIgnore(msg string) bool {
return i18n.IgnoreTheseStrings[msg]
return IgnoreTheseStrings[msg]
}
func visit(node *html.Node, record func([]*html.Node)) {