Mercurial > gemma
diff pkg/common/lang.go @ 4170:afabd52212d2
Moved country -> spoken language lookup table to common package to flesh out the misc package.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Mon, 05 Aug 2019 16:30:55 +0200 |
parents | pkg/misc/lang.go@ce39e9954e85 |
children | c982969e7743 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/pkg/common/lang.go Mon Aug 05 16:30:55 2019 +0200 @@ -0,0 +1,26 @@ +// This is Free Software under GNU Affero General Public License v >= 3.0 +// without warranty, see README.md and license for details. +// +// SPDX-License-Identifier: AGPL-3.0-or-later +// License-Filename: LICENSES/AGPL-3.0.txt +// +// Copyright (C) 2019 by via donau +// – Österreichische Wasserstraßen-Gesellschaft mbH +// Software engineering by Intevation GmbH +// +// Author(s): +// * Sascha Wilde <wilde@intevation.de> + +package common + +// CCtoLang is a lookup table to associate a country code +// with a spoken language. +var CCtoLang = map[string]string{ + "GB": "EN", + "AT": "DE", + "SK": "SK", + "HU": "HU", + "HR": "HR", + "BG": "BG", + "RO": "RO", +}