Use shared emoji catalog
This commit is contained in:
1 parent
e6da76e14a
commit
f4226e705f
13 files changed
+3405
-3766
No files matched your search
@@ -56,15 +56,6 @@
|
||||
"all"
|
||||
],
|
||||
"internal/emoji/catalog.go": [
|
||||
"People",
|
||||
"Nature",
|
||||
"Food",
|
||||
"Activity",
|
||||
"Travel",
|
||||
"Objects",
|
||||
"Holidays",
|
||||
"Symbols",
|
||||
"Flags",
|
||||
"All"
|
||||
],
|
||||
"internal/punctuation/text_processing.go": [
|
||||
|
||||
@@ -20,6 +20,7 @@ import (
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
commonemoji "git.stormux.org/storm/screenreader-common/emoji"
|
||||
"github.com/leonelquinteros/gotext"
|
||||
"github.com/pelletier/go-toml/v2"
|
||||
)
|
||||
@@ -198,6 +199,14 @@ func extract() (map[string][]string, error) {
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
// The picker data lives in screenreader-common, outside the reader's
|
||||
// internal/ tree scanned above. Its English labels remain Fenrir message IDs.
|
||||
for _, category := range commonemoji.Categories() {
|
||||
add(category.Label, "screenreader-common/emoji/catalog.go")
|
||||
for _, entry := range category.Entries {
|
||||
add(entry.Label, "screenreader-common/emoji/catalog.go")
|
||||
}
|
||||
}
|
||||
// Dynamic labels without a directly extractable lookup. Each must still
|
||||
// occur in its source, so removals/renames cannot silently leave stale IDs.
|
||||
data, err := os.ReadFile("tools/translations/dynamic.json")
|
||||
|
||||
Reference in new issue
Block a user