Initialize loco app
Some checks failed
CI / Check Style (push) Successful in 18s
CI / Run Tests (push) Failing after 49s
CI / Run Clippy (push) Successful in 53s

This commit is contained in:
Dylan Knutson
2024-11-30 12:41:45 -08:00
parent 9fe2bd20c7
commit acb33d4730
84 changed files with 8194 additions and 8 deletions

View File

@@ -0,0 +1,4 @@
hello-world = Hallo Welt!
greeting = Hallochen { $name }!
.placeholder = Hallo Freund!
about = Uber

View File

@@ -0,0 +1,10 @@
hello-world = Hello World!
greeting = Hello { $name }!
.placeholder = Hello Friend!
about = About
simple = simple text
reference = simple text with a reference: { -something }
parameter = text with a { $param }
parameter2 = text one { $param } second { $multi-word-param }
email = text with an EMAIL("example@example.org")
fallback = this should fall back

1
assets/i18n/shared.ftl Normal file
View File

@@ -0,0 +1 @@
-something = foo

3
assets/static/404.html Normal file
View File

@@ -0,0 +1,3 @@
<html><body>
not found :-(
</body></html>

BIN
assets/static/image.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 298 KiB

View File

@@ -0,0 +1,12 @@
<html><body>
<img src="/static/image.png" width="200"/>
<br/>
find this tera template at <code>assets/views/home/hello.html</code>:
<br/>
<br/>
{{ t(key="hello-world", lang="en-US") }},
<br/>
{{ t(key="hello-world", lang="de-DE") }}
</body></html>