You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Extract translatables from .templ, .html, .js and .css files. Syntax:
HTML & Templ <i18n>...</i18n>; <* i18n>...</*>; [[i18n]]...[[/i18n]]
Javascript i18n("...", *); [[i18n]]...[[/i18n]]
CSS i18n("...", *); [[i18n]]...[[/i18n]]
Where * is ignored and ... is the translatable
Compile .po into .mo
Take files from site/, apply translations with the .po files, generate build/localized/...
Compile Go-Templ templates from build/localized into build/compiled
Generate router code in build/router.go to make routes, based on the file structure found in build/localized. templates that start with capital letters are components and not routes.
+build/compiled/
fr/
Header_templ.go
index_templ.go
about_templ.go
work_templ.go
work/test_templ.go
original/
Header_templ.go
index_templ.go
about_templ.go
work_templ.go
work/test_templ.go
+build/router.go:
```go
for locale := range Locales() {
for work := range db.InLanguage("fr").All() {
response := fetch("/" + work.Slug)
response.WriteTo("dist/
}
}
+build/ssg.go:
ortfo/deploy
- Generate static HTML files using code generated by ortfo/routes
- Upload language and media directories to corresponding directories and hosts using rsync (or git)
-build/
+dist/
fr/
index.html
about/index.html
work-1/index.html
work-1/test/index.html
work-2/index.html
work-2/test/index.html
original/
index.html
about/index.html
work-1/index.html
work-1/test/index.html
work-2/index.html
work-2/test/index.html
media/
work-1/asset.png
media/.thumbnails/work-1
400/asset.png
600/asset.png
>dist/
fr/ -> fr.ewen.works/
original/ -> en.ewen.works/
media/ -> media.ewen.works/
ortfo/gui
Responsabilities: Provide a responsive interface to
Edit description files [ortfo/db -> ortfo/media -> ortfo/localize -> ortfo/routes -> ortfo/deploy]- Download "themes", which means a site/ directory [ortfo/routes -> ortfo/deploy]
This discussion was converted from issue #73 on November 02, 2023 13:27.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
initial source
ortfo/localize
ortfo/db
ortfo/media
ortfo/routes (go-templ, a router library [TBD])
ortfo/gui
Beta Was this translation helpful? Give feedback.
All reactions