This sample app keeps an internal display language different from the system settings, and allows Compose to reflect the display language that can be changed dynamically by user operations.
Link: An article describing its implementations in details. (Japanese)
システムの言語設定とは別にアプリ内部の表示言語を保持し、ユーザ操作により動的に変化する表示言語をComposeに反映させます。