mirror of
https://github.com/facefusion/facefusion.git
synced 2026-04-23 01:46:09 +02:00
15 lines
406 B
Python
15 lines
406 B
Python
from facefusion import translator
|
|
from facefusion.locales import LOCALES
|
|
|
|
|
|
def test_load() -> None:
|
|
translator.load(LOCALES, __name__)
|
|
|
|
assert __name__ in translator.LOCALE_POOL_SET
|
|
|
|
|
|
def test_get() -> None:
|
|
assert translator.get('conda_not_activated') == 'conda is not activated'
|
|
assert translator.get('help.skip_conda') == 'skip the conda environment check'
|
|
assert translator.get('invalid') is None
|