fix: only use pure translator translateBin if its a pure translator

This commit is contained in:
Yusuf Bera Ertan 2022-10-06 22:04:27 +03:00
parent 819f52348b
commit 011e3dbd27
No known key found for this signature in database
GPG Key ID: 1D8F8FAF2294D6EA

View File

@ -17,7 +17,10 @@
}
);
translateBin =
framework.functions.translators.wrapPureTranslator
{inherit (config) subsystem name;};
if config.translate != null
then
framework.functions.translators.wrapPureTranslator
{inherit (config) subsystem name;}
else framework.lib.mkForce config.translateBin;
};
}