Handling nil or (empty) array

No. Not sure how that would be “the same”. You would have to look at go-18n (the package we use) for some tools to handle translation files.