Merge locales from devices
Using the deep_merge:

["fi", "en"].each do |lang|
  target = "./config/locales/#{ lang }.yml"
  merged = YAML::load_file(target).deep_merge(
    YAML::load_file("./devices/server/config/locales/#{ lang }.yml")
  )
  File.open(target, "w").write(merged.to_yaml)
end