Closed welpo closed 1 year ago
Checks the length of config.languages directly instead of looping over them (before building language switcher).
config.languages
Since language_count is not used anywhere else, this small change improves the simplicity and readability of the code.
language_count
Good Catch! Thank you for this.
Checks the length of
config.languages
directly instead of looping over them (before building language switcher).Since
language_count
is not used anywhere else, this small change improves the simplicity and readability of the code.