fix properties parsing

Resolves #190
This commit is contained in:
marhali 2022-10-28 15:44:20 +02:00
parent d0483b4e6b
commit acb284ff88
2 changed files with 6 additions and 6 deletions

View File

@ -3,6 +3,8 @@
# easy-i18n Changelog # easy-i18n Changelog
## [Unreleased] ## [Unreleased]
### Fixed
- Parsing for <kbd>.properties</kbd> files
## [4.2.4] ## [4.2.4]
### Changed ### Changed

View File

@ -47,11 +47,9 @@ public class PropertiesParserStrategy extends ParserStrategy {
throw new SyntaxException(ex.getMessage(), file); throw new SyntaxException(ex.getMessage(), file);
} }
if(!input.isEmpty()) {
PropertiesMapper.read(file.getLocale(), input, targetData, converter); PropertiesMapper.read(file.getLocale(), input, targetData, converter);
} }
} }
}
@Override @Override
public @NotNull String write(@NotNull TranslationData data, @NotNull TranslationFile file) throws Exception { public @NotNull String write(@NotNull TranslationData data, @NotNull TranslationFile file) throws Exception {