diff --git a/src/main/kotlin/eu/long1/flutter/i18n/workers/I18nFileGenerator.kt b/src/main/kotlin/eu/long1/flutter/i18n/workers/I18nFileGenerator.kt index fdcadc4..a3ea672 100644 --- a/src/main/kotlin/eu/long1/flutter/i18n/workers/I18nFileGenerator.kt +++ b/src/main/kotlin/eu/long1/flutter/i18n/workers/I18nFileGenerator.kt @@ -196,7 +196,7 @@ class I18nFileGenerator(private val project: Project) { var hasItems = false while (PARAMETER_MATCHER.find()) { if (!hasItems) { - builder.append(" String $id(") + builder.append(" String $id({") hasItems = true } @@ -206,7 +206,7 @@ class I18nFileGenerator(private val project: Project) { if (hasItems) { builder.setLength(builder.length - 2) - builder.append(")") + builder.append("})") } else { builder.append(" String get $id") }