engine/i18n with catalogs, plural forms and module catalogs; tools/i18n extract and check; the editor UI, menus, panels and notices in Russian with the author's terms; overflow test and tooltip wrapping; the English log.
23 lines
347 B
Go
23 lines
347 B
Go
//go:build !aego_runtime
|
|
|
|
package gameplay
|
|
|
|
import (
|
|
"embed"
|
|
"io/fs"
|
|
|
|
"aego/engine/module"
|
|
)
|
|
|
|
//go:embed res/docs res/i18n
|
|
var docFiles embed.FS
|
|
|
|
func registerDocs(r *module.Registry) {
|
|
if sub, err := fs.Sub(docFiles, "res/docs"); err == nil {
|
|
r.Docs(sub)
|
|
}
|
|
if sub, err := fs.Sub(docFiles, "res/i18n"); err == nil {
|
|
r.Messages(sub)
|
|
}
|
|
}
|