Download this file
| 1 | package 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. |
| 8 | var 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. |
| 12 | func Dir(locale string) string { |
| 13 | if locale == "ar" { |
| 14 | return "rtl" |
| 15 | } |
| 16 | return "ltr" |
| 17 | } |
| 18 | |