java - ResourceBundle: Customize parameters to use different parameters to look up .properties file -
i creating resourcebundles
using properties files . have other parameters want use make decision on bundle get. using java resourcebundle getbundle
syntax doesn't allow me make decisions on locale. there alternative using or there way of customising lookup of bundles?
i have considered incorporating additional decision parameters in basename of bundle last resort. looking solutions in java that's language used backend service.
e.g. keys_us_en.properties may 1 file. when add new parameter x. create new properties file keys_us_en_p1.properties. locale
doesn't support custom parameter x value p1 here. alternatives can use? how can customize resourcebundle this. should implement scratch? understanding java.util.resourcebundle
has no method nor java.util.locale
.
tl;dr
how implement resourcebundle right bundle can fetched using number of decision parameters?
Comments
Post a Comment