プレゼンテーション層で JSON を使用して Spring MVC を使用して Java Web アプリケーションを開発しています。ハードコーディングの代わりに JSP で UI ラベルを表示するために、プロパティ ファイルから取得し、JSP 表現ではspring:messageタグを使用しています。これを実現するためにResourceBundleMessageSourceを使用しています。これは正常に機能しています。
ただし、アプリケーションはさまざまな地域からアクセスされ、地域に基づいて、使用する必要がある UI ラベル用のさまざまなプロパティ ファイルがあります。すべてのプロパティ ファイルのキーは同じですが、値が異なります。
たとえば、ユーザーがアプリケーションにアクセスする場所に「Region1」と「Region2」という 2 つの reqions があるとします。message_region1.properties と message_region2.properties などの 2 つのプロパティ ファイルがあります。ユーザーが Region1 からログインするときは message_Region1.properties を選択する必要があり、ユーザーが「Region2」からログインする場合は message_Region2.properties を選択して UI ラベルを表示する必要があります。両方のプロパティのすべてのキーが同じであるため、jsp ファイルに変更はありません。
それを達成するためのアドバイスはありますか?