mirror of
https://github.com/nix-community/dream2nix.git
synced 2024-09-11 14:35:30 +03:00
fix: use user set translator if the discoverer didn't set any translators
This commit is contained in:
parent
2c7b658174
commit
35d8e4cce1
@ -477,7 +477,10 @@ in let
|
||||
translator =
|
||||
if
|
||||
(project ? translator)
|
||||
&& l.any (t: project.translator == t) project.translators
|
||||
&& (
|
||||
(! project ? translators)
|
||||
|| (l.any (t: project.translator == t) project.translators)
|
||||
)
|
||||
then project.translator
|
||||
else l.head project.translators;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user