You need to use some type of a database for such task that you can call text by key and be able to do localization.