There are a number of ways to approach the internationalisation of a web application. I'm going to look at a method using Log::Report, which includes very comprehensive translation functionality.
More specifically, I will use its Dancer2 plugin, Dancer2::Plugin::LogReport.