File tree 6 files changed +16
-0
lines changed
6 files changed +16
-0
lines changed Original file line number Diff line number Diff line change 26
26
" io.restx:restx-server-simple:${restx.version}" ,
27
27
" io.restx:restx-apidocs:${restx.version}" ,
28
28
" io.restx:restx-specs-admin:${restx.version}" ,
29
+ " io.restx:restx-i18n-admin:${restx.version}" ,
29
30
" ch.qos.logback:logback-classic:${logback.version}"
30
31
],
31
32
"runtime" : [
Original file line number Diff line number Diff line change 25
25
<dependency org =" io.restx" name =" restx-server-simple" rev =" latest.integration" conf =" default" />
26
26
<dependency org =" io.restx" name =" restx-apidocs" rev =" latest.integration" conf =" default" />
27
27
<dependency org =" io.restx" name =" restx-specs-admin" rev =" latest.integration" conf =" default" />
28
+ <dependency org =" io.restx" name =" restx-i18n-admin" rev =" latest.integration" conf =" default" />
28
29
<dependency org =" ch.qos.logback" name =" logback-classic" rev =" 1.0.13" conf =" default" />
29
30
<dependency org =" io.restx" name =" restx-barbarywatch" rev =" latest.integration" conf =" runtime->default" />
30
31
<dependency org =" io.restx" name =" restx-specs-tests" rev =" latest.integration" conf =" test->default" />
Original file line number Diff line number Diff line change 80
80
<artifactId >restx-specs-admin</artifactId >
81
81
<version >${restx.version} </version >
82
82
</dependency >
83
+ <dependency >
84
+ <groupId >io.restx</groupId >
85
+ <artifactId >restx-i18n-admin</artifactId >
86
+ <version >${restx.version} </version >
87
+ </dependency >
83
88
<dependency >
84
89
<groupId >ch.qos.logback</groupId >
85
90
<artifactId >logback-classic</artifactId >
Original file line number Diff line number Diff line change 6
6
import restx .admin .AdminModule ;
7
7
import restx .factory .Module ;
8
8
import restx .factory .Provides ;
9
+ import restx .i18n .SupportedLocale ;
9
10
import restx .security .*;
10
11
11
12
import javax .inject .Named ;
13
+ import java .util .Locale ;
12
14
13
15
/**
14
16
* Date: 1/12/13
@@ -26,6 +28,11 @@ public String appPackage() {
26
28
return "samplest" ;
27
29
}
28
30
31
+ @ Provides
32
+ public SupportedLocale french () {
33
+ return new SupportedLocale (Locale .FRENCH );
34
+ }
35
+
29
36
@ Provides
30
37
public BasicPrincipalAuthenticator basicPrincipalAuthenticator (SecuritySettings securitySettings ,
31
38
final @ Named ("restx.admin.passwordHash" ) String adminPasswordHash ) {
Original file line number Diff line number Diff line change
1
+ welcome =Welcome!
Original file line number Diff line number Diff line change
1
+ welcome =Bienvenue RESTX !
You can’t perform that action at this time.
0 commit comments