Example handling two different language page object model

Can anyone help, i have to handle two page object model (two language ex pom for english and pom for spain) can you give example code for java, how to give flag in the base setup and declare in pom class.Thx you