[bot] move locale reloading into its own function