DRY supported_languages

This commit is contained in:
2026-01-23 21:55:06 +01:00
parent a7713b962f
commit b3726e0777
8 changed files with 46 additions and 23 deletions
+3
View File
@@ -1,2 +1,5 @@
module ApplicationHelper
def language_name(code)
supported_languages.find { |l| l.code == code }&.name
end
end