major
nice-to-have
defect
major
enhancement
For I18N, there is the method `ResKey.fallback(main, fallback) : ResKey`. However, the method `main.fallback(fallback) : ResKey` would be more convenient. Therefore, this method is being introduced. The existing method will remain in place to avoid the need for a major migration.
Test
- TestResKey:
- testFallbackNesting*()
- testFallbackWithFallbackSuffix()
- testSuffixOfLiteralTextWithFallback()
These tests were created as part of #22944 to verify that the complex fallback scenarios used there work correctly.