Add localizations for romanian and hungarian

Change-Id: Icdfb1b951f0797f180ab3ad0b32c299647f5d6a2
diff --git a/t/loc.t b/t/loc.t
new file mode 100644
index 0000000..3b45795
--- /dev/null
+++ b/t/loc.t
@@ -0,0 +1,38 @@
+use Mojo::Base -strict;
+use Test::More;
+use Test::Mojo;
+use Mojo::File qw/path/;
+use utf8;
+
+$ENV{KALAMAR_VERSION} = '0.47.999';
+
+my $t = Test::Mojo->new('Kalamar');
+
+$t->app->mode('production');
+
+$t->get_ok('/')
+  ->status_is(200)
+  ->text_is('title', 'KorAP - Corpus Analysis Platform')
+  ->text_is('h1 span', 'KorAP - Corpus Analysis Platform')
+  ;
+
+$t->get_ok('/' => { 'Accept-Language' => 'de-DE, en-US, en' })
+  ->status_is(200)
+  ->text_is('title', 'KorAP - Korpusanalyseplattform der nächsten Generation')
+  ->text_is('h1 span', 'KorAP - Korpusanalyseplattform der nächsten Generation')
+  ;
+
+$t->get_ok('/' => { 'Accept-Language' => 'ro, en' })
+  ->status_is(200)
+  ->text_is('title', 'KorAP - Platformă pentru analiza corpusului')
+  ->text_is('h1 span', 'KorAP - Platformă pentru analiza corpusului')
+  ;
+
+$t->get_ok('/' => { 'Accept-Language' => 'hu, en' })
+  ->status_is(200)
+  ->text_is('title', 'KorAP - Korpuszelemző platform')
+  ->text_is('h1 span', 'KorAP - Korpuszelemző platform')
+  ;
+
+
+done_testing();