Hallo, a Wicket i18n question: I have a javaScript file, that holds strings I want to localize. Ideally I want to localize the whole file. Something like
where wicket automatically chooses the right js file, as it does with property files.
Any one knows how to do that?
Pass the locale to the resource reference:
class MyPage extends WebPage implements IHeaderContributor {
public void renderHead(IHeaderResponse response) {
response.renderJavascriptReference(new ResourceReference(
MyPage.class, "my.js", getLocale(), getStyle()));
}
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With