diff --git a/crowdin.yml b/crowdin.yml new file mode 100644 index 00000000..8b077e37 --- /dev/null +++ b/crowdin.yml @@ -0,0 +1,3 @@ +files: + - source: /src/main/resources/assets/playerex/lang/en_us.json + translation: /src/main/resources/assets/playerex/lang/%locale%.json \ No newline at end of file diff --git a/src/client/kotlin/com/bibireden/playerex/ui/components/AttributeListEntryComponent.kt b/src/client/kotlin/com/bibireden/playerex/ui/components/AttributeListEntryComponent.kt index a9e125db..75f437f4 100644 --- a/src/client/kotlin/com/bibireden/playerex/ui/components/AttributeListEntryComponent.kt +++ b/src/client/kotlin/com/bibireden/playerex/ui/components/AttributeListEntryComponent.kt @@ -27,9 +27,8 @@ class AttributeListEntryComponent( text( Component.translatable(attribute.descriptionId) .append(": ") - .append(Component.literal( - DataAttributesAPI.getValue(attribute, player).map { formattingPredicate(it) } - .orElse("N/A")).withStyle { it.withColor(Colors.GOLD) } + .append(Component.literal(DataAttributesAPI.getValue(attribute, player).map(formattingPredicate) + .orElse("N/A")).withStyle { it.withColor(Colors.GOLD) } ) ) } diff --git a/src/main/resources/assets/playerex/lang/en_us.json b/src/main/resources/assets/playerex/lang/en_us.json index 2c019c54..33212281 100644 --- a/src/main/resources/assets/playerex/lang/en_us.json +++ b/src/main/resources/assets/playerex/lang/en_us.json @@ -21,7 +21,7 @@ {"index": 0}, {"text": " (", "color": "#757575"}, {"index": 1, "color": "#757575", "italic": true, "underline": true }, - {"text": " XP until the next level)", "color": "#757575", "italic": true } + {"text": " XP required until the next level)", "color": "#757575", "italic": true } ], "playerex.ui.level_button": [ {"text": "", "color": "#F0C25E"},