From 1d4aefe2d1105f441331de5c89dcd206cc6bbc7d Mon Sep 17 00:00:00 2001 From: MEFRREEX Date: Fri, 12 Sep 2025 17:31:21 +0400 Subject: [PATCH] fix: build --- .../main/java/com/luminiadev/polyglot/core/BaseTranslation.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/com/luminiadev/polyglot/core/BaseTranslation.java b/core/src/main/java/com/luminiadev/polyglot/core/BaseTranslation.java index 5b0a135..948ae76 100644 --- a/core/src/main/java/com/luminiadev/polyglot/core/BaseTranslation.java +++ b/core/src/main/java/com/luminiadev/polyglot/core/BaseTranslation.java @@ -55,7 +55,7 @@ public String translate(Language language, String key, TrParameters parameters) String translation = findTranslation(targetLanguage, key); if (translation == null) { - translation = fallbackStrategy != null ? fallbackStrategy.apply(key) : key; + translation = fallbackStrategy != null ? fallbackStrategy.get(key) : key; } return applyParameters(translation, parameters);