rastrillo / fiesta Public

Clone
git clone https://amadan.net/rastrillo/fiesta

Plain git — no account needed to clone.

Download

Download this file

1package gallery
2
3// Locales are the languages the design system renders in: Fiesta's
4// own twelve, the ones its i18n/ string tables ship, with English
5// first because the tree root is the English Day rendering. Pages
6// live at <theme>/<locale>/; the Arabic tree is the right-to-left
7// rendering, and there is no twin directory beside it.
8var Locales = []string{"en", "ar", "bn", "es", "ga", "hi", "ja", "pt-PT", "ru", "vi", "yue", "zh-Hans"}
9
10// Dir is the writing direction a locale's <html> declares: "rtl" for
11// Arabic, "ltr" for the rest.
12func Dir(locale string) string {
13 if locale == "ar" {
14 return "rtl"
15 }
16 return "ltr"
17}
18