mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-06-21 16:40:52 +00:00
i18n: Add dummy language for checking translation keys (#5785)
This commit is contained in:
parent
cea08caea3
commit
42eed7dbea
5 changed files with 123 additions and 2 deletions
24
tests/integration/dummy_lang_test.go
Normal file
24
tests/integration/dummy_lang_test.go
Normal file
|
@ -0,0 +1,24 @@
|
|||
// Copyright 2024 The Forgejo Authors. All rights reserved.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
package integration
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
"testing"
|
||||
|
||||
"code.gitea.io/gitea/tests"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
func TestKeyLocale(t *testing.T) {
|
||||
defer tests.PrepareTestEnv(t)()
|
||||
|
||||
req := NewRequest(t, "GET", "/user2/repo1/issues?lang=dummy")
|
||||
resp := MakeRequest(t, req, http.StatusOK)
|
||||
|
||||
htmlDoc := NewHTMLParser(t, resp.Body)
|
||||
newButton := htmlDoc.doc.Find(".list-header-issues > .issue-list-new")
|
||||
assert.Equal(t, "(repo.issues.new)", newButton.Text())
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue