summary refs log tree commit diff
path: root/t/lib
diff options
context:
space:
mode:
Diffstat (limited to 't/lib')
-rw-r--r--t/lib/TestApp.pm16
-rw-r--r--t/lib/logs/development.log0
-rw-r--r--t/lib/views/index.tt3
3 files changed, 19 insertions, 0 deletions
diff --git a/t/lib/TestApp.pm b/t/lib/TestApp.pm
new file mode 100644
index 0000000..966ec30
--- /dev/null
+++ b/t/lib/TestApp.pm
@@ -0,0 +1,16 @@
+package TestApp;
+
+use Dancer;
+use Dancer::Plugin::I18n;
+
+get '/' => sub { template 'index'; };
+
+package TestApp::I18N::de;
+use base 'TestApp::I18N';
+our %Lexicon = ( hello => 'hallo' );
+
+package TestApp::I18N::fr;
+use base 'TestApp::I18N';
+our %Lexicon = ( hello => 'bonjour' );
+
+1;
diff --git a/t/lib/logs/development.log b/t/lib/logs/development.log
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/t/lib/logs/development.log
diff --git a/t/lib/views/index.tt b/t/lib/views/index.tt
new file mode 100644
index 0000000..8260dab
--- /dev/null
+++ b/t/lib/views/index.tt
@@ -0,0 +1,3 @@
+first we got <% l('hello') %>
+<% languages('de') %>
+then we have <% l('hello') %>