Bridging the Gap: Dynamic Learning Strategies for Improving Multilingual Performance in LLMs