Fix scope when splitting files by locale