Wednesday, 10 July 2024

Java I18N

public static void useI18n() {
        Locale locale = Locale.of("de");
        ResourceBundle messages = ResourceBundle.getBundle("MessagesBundle", locale);
        System.out.println(MessageFormat.format(messages.getString("greeting"), "Tom"));
        System.out.println(messages.getString("farewell"));
    }

No comments:

Post a Comment

Parse Wikipedia dump

""" This module processes Wikipedia dump files by extracting individual articles and parsing them into a structured format, ...