aboutsummaryrefslogtreecommitdiff
path: root/locale/plural_test.go
diff options
context:
space:
mode:
authorGravatar Frédéric Guillot <f@miniflux.net> 2021-02-16 22:58:44 -0800
committerGravatar fguillot <f@miniflux.net> 2021-02-16 23:09:01 -0800
commit5d65a85bdbd19e361a235c003f74b55e86ffece8 (patch)
tree67c8c34450e8ade7889cfd54fd9a4946fd2cdf6f /locale/plural_test.go
parenta352aff93bc04d1e4e3560ef419ddcb9b3170085 (diff)
downloadv2-5d65a85bdbd19e361a235c003f74b55e86ffece8.tar.gz
v2-5d65a85bdbd19e361a235c003f74b55e86ffece8.tar.zst
v2-5d65a85bdbd19e361a235c003f74b55e86ffece8.zip
Use embed package for translations instead of generated files
Replace "go generate" with the new embed package.
Diffstat (limited to 'locale/plural_test.go')
-rw-r--r--locale/plural_test.go16
1 files changed, 8 insertions, 8 deletions
diff --git a/locale/plural_test.go b/locale/plural_test.go
index e7694bd4..4cd9accc 100644
--- a/locale/plural_test.go
+++ b/locale/plural_test.go
@@ -8,12 +8,12 @@ import "testing"
func TestPluralRules(t *testing.T) {
scenarios := map[string]map[int]int{
- "default": map[int]int{
+ "default": {
1: 0,
2: 1,
5: 1,
},
- "ar_AR": map[int]int{
+ "ar_AR": {
0: 0,
1: 1,
2: 2,
@@ -21,32 +21,32 @@ func TestPluralRules(t *testing.T) {
11: 4,
200: 5,
},
- "cs_CZ": map[int]int{
+ "cs_CZ": {
1: 0,
2: 1,
5: 2,
},
- "pl_PL": map[int]int{
+ "pl_PL": {
1: 0,
2: 1,
5: 2,
},
- "pt_BR": map[int]int{
+ "pt_BR": {
1: 0,
2: 1,
5: 1,
},
- "ru_RU": map[int]int{
+ "ru_RU": {
1: 0,
2: 1,
5: 2,
},
- "sr_RS": map[int]int{
+ "sr_RS": {
1: 0,
2: 1,
5: 2,
},
- "zh_CN": map[int]int{
+ "zh_CN": {
1: 0,
5: 0,
},