Search in sources :

Example 1 with FixedTranslation

use of org.spongepowered.api.text.translation.FixedTranslation in project SpongeAPI by SpongePowered.

the class TestTextFactoryTest method testToPlainTranslatables.

@Test
public void testToPlainTranslatables() {
    Text testText = Text.of(new FixedTranslation("This is a translated %s"), Text.of("string"));
    assertEquals("This is a translated string", testText.toPlain());
}
Also used : FixedTranslation(org.spongepowered.api.text.translation.FixedTranslation) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 FixedTranslation (org.spongepowered.api.text.translation.FixedTranslation)1