Skip to content

Commit

Permalink
fix: Rebase issues
Browse files Browse the repository at this point in the history
  • Loading branch information
JanCizmar committed Dec 31, 2023
1 parent a7a838b commit dd98925
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package io.tolgee.service.dataImport.processors

import java.util.Properties
import java.util.*

class PropertyFileProcessor(
override val context: FileProcessorContext,
) : ImportFileProcessor() {
override fun process() {
val props = Properties()
props.load(context.file.inputStream)
props.load(context.file.data.inputStream())
props.entries.forEachIndexed { idx, it ->
context.addTranslation(it.key.toString(), languageNameGuesses[0], it.value, idx)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class PropertiesParserTest {
ImportFileDto(
"messages_en.properties",
File("src/test/resources/import/example.properties")
.inputStream(),
.readBytes(),
)
fileProcessorContext = FileProcessorContext(importFileDto, importFile)
}
Expand Down

0 comments on commit dd98925

Please sign in to comment.