Move custom string to resource files

Is there any way to move custom string from my scripts/automations/services to separately files? I’d like to create custom strings in many languages in separately files. For example resources.en-US, resources.pl-PL and then using key, read value from resources file.

Thanks for help!