Core components of the web application. https://write.as
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
633 B

  1. package l10n
  2. // Strings returns a translation set that will take any term and return its
  3. // translation.
  4. func Strings(lang string) map[string]string {
  5. switch lang {
  6. case "de":
  7. return phrasesDE
  8. case "el":
  9. return phrasesEL
  10. case "es":
  11. return phrasesES
  12. case "fr":
  13. return phrasesFR
  14. case "hu":
  15. return phrasesHU
  16. case "it":
  17. return phrasesIT
  18. case "ja":
  19. return phrasesJA
  20. case "mk":
  21. return phrasesMK
  22. case "pl":
  23. return phrasesPL
  24. case "pt":
  25. return phrasesPT
  26. case "ro":
  27. return phrasesRO
  28. case "ru":
  29. return phrasesRU
  30. case "sv":
  31. return phrasesSV
  32. case "zh":
  33. return phrasesZH
  34. default:
  35. return phrases
  36. }
  37. }