2020-02-23 05:57:02 +01:00
|
|
|
import anki.lang
|
|
|
|
|
|
|
|
|
|
|
|
def test_no_collection_i18n():
|
2021-03-26 00:40:41 +01:00
|
|
|
anki.lang.set_lang("zz")
|
2021-03-26 05:49:55 +01:00
|
|
|
tr = anki.lang.tr_legacyglobal
|
2020-02-23 05:57:02 +01:00
|
|
|
no_uni = anki.lang.without_unicode_isolation
|
2021-03-26 05:49:55 +01:00
|
|
|
assert no_uni(tr.statistics_reviews(reviews=2)) == "2 reviews"
|
2020-02-23 05:57:02 +01:00
|
|
|
|
2021-03-26 00:40:41 +01:00
|
|
|
anki.lang.set_lang("ja")
|
2021-03-26 05:49:55 +01:00
|
|
|
assert no_uni(tr.statistics_reviews(reviews=2)) == "2 枚の復習カード"
|