summaryrefslogtreecommitdiffstats
path: root/modules/translation/i18n/errors.go
blob: 7f64ccf908e97ae3d8ce9ee869aa87b60cc55a07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// Copyright 2022 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT

package i18n

import (
	"code.gitea.io/gitea/modules/util"
)

var (
	ErrLocaleAlreadyExist = util.SilentWrap{Message: "lang already exists", Err: util.ErrAlreadyExist}
	ErrUncertainArguments = util.SilentWrap{Message: "arguments to i18n should not contain uncertain slices", Err: util.ErrInvalidArgument}
)