-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.html
102 lines (90 loc) · 4.8 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="example.css">
<meta charset="utf-8">
<script type="text/javascript" src="build/example.js"></script>
<script type="text/json">
{
"en":{
"seeThreepio": "See-Threepio",
"string":"string",
"octopus":"octopus",
"octopie":"octopie",
"*octopus(count)":"~?(~!=({count}|1)|~octopie|~octopus)",
"aNewWay": "~seeThreepio is a new way to localize your ~pluralize(string|2).",
"ubiquetyAndPower": "It uses the ubiquety of the JSON format, and the power of a expression language to help with translation.",
"javascriptImplementation": "This example runs on the JavaScript implementation of ~seeThreepio(), which works both in Node, and in the browser.",
"minifiedAndGZipped": "Minified and gzipped, ~seeThreepio is around",
"fileSize(zipped|raw)": "{zipped} gzipped ({raw} uncompressed)",
"handlesPlurals":"Due to it's inbuilt functions, ~seeThreepio can be used to handle complex pluralization, such as ~pluralize(octopus|1) and ~pluralize(octopus|2)",
"pluralize(word|count)": "~||(~pluralForm({word}|{count})|{word}~?(~!=({count}|1)|s))",
"pluralForm(word|count)":"~?(~?>(*{word})|~->(*{word}|{count}))"
},
"zh_cn":{
"seeThreepio": "See-Threepio",
"string":"文字",
"octopus":"八爪鱼",
"aNewWay": "~seeThreepio()旨在为程序提供本地化~pluralize(string|2).",
"ubiquetyAndPower": "它用广泛运用的JSON格式和强大的表达式语言来本地化和翻译.",
"javascriptImplementation": "这个例子是利用Javascript实现的~seeThreepio(), 以Javascript实现的~seeThreepio()可以用在Node和浏览器上.",
"minifiedAndGZipped": "Minified和gzipped, ~seeThreepio()都没有问题",
"fileSize(zipped|raw)": "{zipped} gzipped ({raw} uncompressed)",
"handlesPlurals":"基于它的内置功能,~seeThreepio()可用于处理复杂的名词复数(例如在英语中, ~pluralize(octopus|1) 和 ~pluralize(octopus|2))",
"pluralize(word|count)": "~->({word})"
},
"l33t":{
"seeThreepio": "C3PO",
"string":"5tr1n9",
"octopus":"0c70PUz",
"octopie":"5kw1Dz",
"*octopus(count)":"~?(~!=({count}|1)|~octopie|~octopus)",
"aNewWay": "~seeThreepio iz 4 n3w w4y t0 l0c4l1z3 J00r ~pluralize(string|2).",
"ubiquetyAndPower": "It u53z the ub1qu3ty 0f t3h JSON f0rm4t, & t3h p0wz 0f 4 3xpr3ss10n l4ngu4g3 to h3lp w1th tr4n5l4t10n.",
"javascriptImplementation": "Th15 3x4mpl3 runz 0n t3h ECMAzzz 1mpl3m3nt4t10n 0f ~seeThreepio(), wh1ch w0rks b0th 1n N0d3, & 1n t3h pr0n-f1nd3r.",
"minifiedAndGZipped":"M1n+gz1p'd, ~seeThreepio 1z l13k",
"fileSize(zipped|raw)":"{zipped} z1pd ({raw} r4w)",
"handlesPlurals":"Du3 70 17'z 1n6u1l7 func710n5, ~seeThreepio c4n 63 u53d to h4ndl3 c0mpl3x plur4l1z4710n, 5uch 45 ~pluralize(octopus|1) 4nd ~pluralize(octopus|2)",
"pluralize(word|count)": "~||(~pluralForm({word}|{count})|{word}~?(~!=({count}|1)|z))",
"pluralForm(word|count)":"~?(~?>(*{word})|~->(*{word}|{count}))"
},
"dolan":{
"string":"ward",
"octopus":"dopus",
"octopie":"dopuses",
"*octopus(count)":"~?(~!=({count}|1)|~octopie|~octopus)",
"seeThreepio": "zeepytro plz",
"aNewWay": "~seeThreepio r gon locise ~pluralize(string|2).",
"ubiquetyAndPower": "~seeThreepio yoos JSON n got pawa frem spreshuns",
"javascriptImplementation": "Dis won yoos ~seeThreepio() javsreps. It r werks ebrwar",
"minifiedAndGZipped":"iz litdl",
"fileSize(zipped|raw)":"{zipped} sqweshd ({raw} nat sqweshd)",
"handlesPlurals":"I liek sqweshy ~pluralize(octopus|1) an ~pluralize(octopus|2)",
"pluralize(word|count)": "~||(~pluralForm({word}|{count})|{word}~?(~!=({count}|1)|s))",
"pluralForm(word|count)":"~?(~?>(*{word})|~->(*{word}|{count}))"
}
}
</script>
</head>
<body>
<h1>See-Threepio.js</h1>
<template>
<h2>{{__('aNewWay')}}</h2>
<p>
{{__('ubiquetyAndPower')}}
</p>
<p>
{{__('javascriptImplementation')}}
</p>
<p>
{{__('minifiedAndGZipped')}} <strong>{{__('fileSize', '4.04KB', '11.61KB')}}</strong>
</p>
<p>
{{__('pluralize', 'octopus', 2)}}
</p>
<p>
{{__('handlesPlurals')}}
</p>
</template>
</body>
</html>