translation – Polylang – how to use array to translate strings

I am using polylang to translate strings in my theme. I wonder if it's possible to declare strings in a matrix like
$ langs = [
‘item’ => ‘my string’,
‘next’ => ‘another string’,

And then I want to print the translations by name (article, next, etc.). I also want these strings to appear in the string menu in WP. It's possible?