diff --git a/i18n/exceptions.go b/i18n/crawler/exceptions.go similarity index 97% rename from i18n/exceptions.go rename to i18n/crawler/exceptions.go index e56c3ea..69a1de8 100644 --- a/i18n/exceptions.go +++ b/i18n/crawler/exceptions.go @@ -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, diff --git a/i18n/crawler/main.go b/i18n/crawler/main.go index a76f746..78f2758 100644 --- a/i18n/crawler/main.go +++ b/i18n/crawler/main.go @@ -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)) {