major
minor
major
minor
A tl:ResKey can be populated with values that are then incorporated into the actual translation. At this time, it is undefined how many parameters the ResKey expects; in other words, you must check the translation file to see how many "empty slots" need to be filled.
Improvement
There should be various tl:ResKey factory implementations— ResKey1 through ResKey5 —with 1 through 5 parameters, respectively, which can also verify that the correct number of arguments is present. Furthermore, there is ResKeyN, which allows for any number of parameters. This is for the rare case where translations require more than 5 parameters.
Code Migration
The ResKey#fill(...) method has been deprecated. In the I18NConstants, the type of these constants must be changed from ResKey to ResKey1, ResKey2, ResKey3, ResKey4, ResKey5, or ResKeyN, depending on how many arguments are used. If the ResKey is not available in the I18NConstants, one must be defined (otherwise, ResKey also provides deprecated methods such as asResKeyX() to create a ResKeyX ).
Test
No test. Refactoring.