vipassana-design-standards 0.0.19 → 0.0.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/about.html +66 -0
- package/dist/0.0.20/css/bootstrap5-theme.css +12637 -0
- package/dist/0.0.20/css/bootstrap5-theme.css.map +1 -0
- package/dist/0.0.20/css/bootstrap5-theme.min.css +6 -0
- package/dist/0.0.20/css/bootstrap5-theme.rtl.css +12600 -0
- package/dist/0.0.20/css/bootstrap5-theme.rtl.min.css +6 -0
- package/dist/0.0.20/css/fonts-gu.css +65 -0
- package/dist/0.0.20/css/fonts-gu.min.css +1 -0
- package/dist/0.0.20/css/fonts-ja.css +2399 -0
- package/dist/0.0.20/css/fonts-ja.min.css +1 -0
- package/dist/0.0.20/css/fonts-km.css +2399 -0
- package/dist/0.0.20/css/fonts-km.min.css +1 -0
- package/dist/0.0.20/css/fonts.css +472 -0
- package/dist/0.0.20/css/fonts.css.map +1 -0
- package/dist/0.0.20/css/fonts.min.css +1 -0
- package/dist/0.0.20/css/logo.css +135 -0
- package/dist/0.0.20/css/logo.css.map +1 -0
- package/dist/0.0.20/css/logo.min.css +1 -0
- package/dist/0.0.20/js/bootstrap5-theme.min.js +37 -0
- package/dist/0.0.20/js/bootstrap5-theme.min.js.map +1 -0
- package/dist/0.0.20/js/helper.js +96 -0
- package/dist/0.0.20/js/i18n.js +309 -0
- package/dist/js/helper.js +96 -0
- package/dist/js/i18n.js +309 -0
- package/index.html +45 -17
- package/package.json +5 -3
- package/replace-version.js +24 -0
- package/src/javascripts/helper.js +96 -0
- package/src/javascripts/index.js +6 -3
- package/src/stylesheets/index.css +11 -2
- package/vipassana-design-standards.gemspec +1 -1
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import i18n from './i18n.js'
|
|
2
|
+
|
|
3
|
+
function isRtl(locale) {
|
|
4
|
+
return ['ar', 'fa', 'he'].includes(locale)
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export function vdsFaviconTag() {
|
|
8
|
+
return `<link rel="shortcut icon" type="image/x-icon" href="https://design-standards.dhamma.org/dist/favicon.png">`
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
function vdsAssetUrl(path, localhost = false) {
|
|
12
|
+
// For localhost dev, just run vscode liveserver
|
|
13
|
+
if (localhost) return `http://localhost:5500/dist/${path}`
|
|
14
|
+
|
|
15
|
+
return `https://design-standards.dhamma.org/dist/0.0.20/${path}`
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
function stylesheetLinkTag(url) {
|
|
19
|
+
return `<link rel="stylesheet" type="text/css" href="${url}">`
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
function javascriptIncludeTag(url) {
|
|
23
|
+
return `<script type="text/javascript" src="${url}"></script>`
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export function vdsBootstrapThemeCssTag(locale, localhost = false) {
|
|
27
|
+
let tags = [
|
|
28
|
+
stylesheetLinkTag(vdsAssetUrl(`css/bootstrap5-theme${isRtl(locale) ? '.rtl' : ''}.min.css`, localhost))
|
|
29
|
+
]
|
|
30
|
+
// Add specific fonts for languages not compatible with Footlight and Lato
|
|
31
|
+
if (['gu', 'ja', 'km'].includes(locale))
|
|
32
|
+
tags.push(stylesheetLinkTag(vdsAssetUrl(`css/fonts-${locale}.min.css`)))
|
|
33
|
+
|
|
34
|
+
return tags.join('')
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export function vdsBootstrapThemeJsTag(locale, localhost = false) {
|
|
38
|
+
return javascriptIncludeTag(vdsAssetUrl("js/bootstrap5-theme.min.js", localhost))
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function vdsLogo(locale, disposition = "default", size = '18', tagline = true, dark = false) {
|
|
42
|
+
let trans = i18n[locale] || i18n.en
|
|
43
|
+
|
|
44
|
+
if (disposition == "mobile") {
|
|
45
|
+
disposition = "left-two-lines"
|
|
46
|
+
tagline = false
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
return `
|
|
50
|
+
<div class="vipassana-logo"
|
|
51
|
+
data-disposition="${disposition}"
|
|
52
|
+
data-tagline="${tagline}"
|
|
53
|
+
data-dark-mode="${dark}"
|
|
54
|
+
data-reverse="${trans.reverse}"
|
|
55
|
+
style="font-size: ${size}px">
|
|
56
|
+
<img class="logo-wheel" src="https://design-standards.dhamma.org/dist/dhamma-wheel.svg" />
|
|
57
|
+
<div class="logo-text">
|
|
58
|
+
<h1 class="logo-title">
|
|
59
|
+
<span data-start-with="${trans.vipassana_meditation.charAt(0).toLowerCase()}">
|
|
60
|
+
${trans.vipassana_meditation}
|
|
61
|
+
</span>
|
|
62
|
+
<span class="logo-space"> </span>
|
|
63
|
+
<span>${trans.as_taught}</span>
|
|
64
|
+
</h1>
|
|
65
|
+
<div class="logo-subtitle">${trans.in_the_tradition}</div>
|
|
66
|
+
</div>
|
|
67
|
+
</div>
|
|
68
|
+
`
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
// Some icons from bootstrap icons, so all websites use the same
|
|
72
|
+
export function vdsIconLocale() {
|
|
73
|
+
return `
|
|
74
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="1.2em" height="1.2em" fill="currentColor" class="bi bi-translate" viewBox="0 0 16 16">
|
|
75
|
+
<path d="M4.545 6.714 4.11 8H3l1.862-5h1.284L8 8H6.833l-.435-1.286H4.545zm1.634-.736L5.5 3.956h-.049l-.679 2.022H6.18z"/>
|
|
76
|
+
<path d="M0 2a2 2 0 0 1 2-2h7a2 2 0 0 1 2 2v3h3a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-3H2a2 2 0 0 1-2-2V2zm2-1a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h7a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1H2zm7.138 9.995c.193.301.402.583.63.846-.748.575-1.673 1.001-2.768 1.292.178.217.451.635.555.867 1.125-.359 2.08-.844 2.886-1.494.777.665 1.739 1.165 2.93 1.472.133-.254.414-.673.629-.89-1.125-.253-2.057-.694-2.82-1.284.681-.747 1.222-1.651 1.621-2.757H14V8h-3v1.047h.765c-.318.844-.74 1.546-1.272 2.13a6.066 6.066 0 0 1-.415-.492 1.988 1.988 0 0 1-.94.31z"/>
|
|
77
|
+
</svg>
|
|
78
|
+
`
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export function vdsIconAccount() {
|
|
82
|
+
return `
|
|
83
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="2.2em" height="2.2em" fill="currentColor" class="bi bi-person-circle" viewBox="0 0 16 16">
|
|
84
|
+
<path d="M11 6a3 3 0 1 1-6 0 3 3 0 0 1 6 0z"/>
|
|
85
|
+
<path fill-rule="evenodd" d="M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8zm8-7a7 7 0 0 0-5.468 11.37C3.242 11.226 4.805 10 8 10s4.757 1.225 5.468 2.37A7 7 0 0 0 8 1z"/>
|
|
86
|
+
</svg>
|
|
87
|
+
`
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export function vdsIconMenu() {
|
|
91
|
+
return `
|
|
92
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="1.8em" height="1.8em" fill="currentColor" class="bi bi-list" viewBox="0 0 16 16">
|
|
93
|
+
<path fill-rule="evenodd" d="M2.5 12a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm0-4a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm0-4a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5z"/>
|
|
94
|
+
</svg>
|
|
95
|
+
`
|
|
96
|
+
}
|
|
@@ -0,0 +1,309 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
"en": {
|
|
3
|
+
"language": "English",
|
|
4
|
+
"vipassana_meditation": "Vipassana Meditation",
|
|
5
|
+
"as_taught": "as Taught by S.N. Goenka",
|
|
6
|
+
"in_the_tradition": "in the Tradition of Sayagyi U Ba Khin",
|
|
7
|
+
"full": "Vipassana Meditation As Taught By S.N. Goenka in the Tradition of Sayagyi U Ba Khin",
|
|
8
|
+
},
|
|
9
|
+
"bg": {
|
|
10
|
+
"language": "Bulgarian",
|
|
11
|
+
"vipassana_meditation": "Випассана Медитация",
|
|
12
|
+
"as_taught": "както се Преподава от С.Н. Гоенка",
|
|
13
|
+
"in_the_tradition": "в Традицията на Саяджи У Ба Кин",
|
|
14
|
+
"full": "Випассана Медитация, както се преподава от С. Н. Гоенка, в традицията на Саяджи У Ба Кин",
|
|
15
|
+
},
|
|
16
|
+
"ca": {
|
|
17
|
+
"language": "Catalan",
|
|
18
|
+
"vipassana_meditation": "Meditació Vipassana",
|
|
19
|
+
"as_taught": "tal com l’ensenya S.N. Goenka",
|
|
20
|
+
"in_the_tradition": "en la tradició de Sayagyi U Ba Khin",
|
|
21
|
+
"full": "Meditació Vipassana tal com l’ensenya S.N. Goenka en la tradició de Sayagyi U Ba Khin"
|
|
22
|
+
},
|
|
23
|
+
"cs": {
|
|
24
|
+
"language": "Czech",
|
|
25
|
+
"vipassana_meditation": "Meditace Vipassana",
|
|
26
|
+
"as_taught": "jak ji Vyučoval S.N. Goenka",
|
|
27
|
+
"in_the_tradition": "podle Tradice Sayagyi U Ba Khin",
|
|
28
|
+
"full": "Meditace vipassana, jak ji vyučuje S. N. Goenka podle tradice Sayagyi U Ba Khina"
|
|
29
|
+
},
|
|
30
|
+
"de": {
|
|
31
|
+
"language": "German",
|
|
32
|
+
"vipassana_meditation": "Vipassana Meditation",
|
|
33
|
+
"as_taught": "wie Gelehrt von S.N. Goenka",
|
|
34
|
+
"in_the_tradition": "in der Tradition von Sayagyi U Ba Khin",
|
|
35
|
+
"full": "Vipassana Meditation wie gelehrt von S.N. Goenka in der Tradition von Sayagyi U Ba Khin"
|
|
36
|
+
},
|
|
37
|
+
"el": {
|
|
38
|
+
"language": "Greek",
|
|
39
|
+
"vipassana_meditation": "Βιπάσσανα Διαλογισμός",
|
|
40
|
+
"as_taught": "Όπως διδάσκει ο S.N. Goenka",
|
|
41
|
+
"in_the_tradition": "στην παράδοση του Sayagyi U Ba Khin",
|
|
42
|
+
"full": "Διαλογισμός Βιπάσσανα όπως διδάσκεται από τον S.N.Goenka και τους βοηθούς του, κατά την παράδοση του Sayagyi U Ba Khin"
|
|
43
|
+
},
|
|
44
|
+
"es": {
|
|
45
|
+
"language": "Spanish",
|
|
46
|
+
"vipassana_meditation": "Meditación Vipassana",
|
|
47
|
+
"as_taught": "tal y como la Enseña S.N. Goenka",
|
|
48
|
+
"in_the_tradition": "en la Tradición de Sayagyi U Ba Khin",
|
|
49
|
+
"full": "Meditación Vipassana tal y como la enseña S.N. Goenka en la tradición de Sayagyi U Ba Khin",
|
|
50
|
+
},
|
|
51
|
+
"fa": {
|
|
52
|
+
"rtl": true,
|
|
53
|
+
"language": "Persian (Farsi)",
|
|
54
|
+
"vipassana_meditation": "ویپاسانا مراقبه",
|
|
55
|
+
"as_taught": "همانطور که توسط س.ن. گوئنکا تدریس شده است",
|
|
56
|
+
"in_the_tradition": "به سنت سایاجی اوباکین",
|
|
57
|
+
"full": "مراقبه ویپاسانا با روش آموزش س. ن. گوینکا در سنت سایاجی اوباکین"
|
|
58
|
+
},
|
|
59
|
+
"fi": {
|
|
60
|
+
"language": "Finnish",
|
|
61
|
+
"vipassana_meditation": "Vipassana Meditaatio",
|
|
62
|
+
"as_taught": "S.N. Goenka opettamana",
|
|
63
|
+
"in_the_tradition": "Sayagyi U Ba Khinin Traditiossa",
|
|
64
|
+
"full": "Vipassanameditaatio S.N. Goenkan opettamana, Sayagyi U Ba Khinin traditiossa",
|
|
65
|
+
},
|
|
66
|
+
"fr": {
|
|
67
|
+
"language": "French",
|
|
68
|
+
"vipassana_meditation": "Méditation Vipassana",
|
|
69
|
+
"as_taught": "telle qu'enseignée par S.N. Goenka",
|
|
70
|
+
"in_the_tradition": "dans la Tradition de Sayagyi U Ba Khin",
|
|
71
|
+
"full": "Méditation Vipassana telle qu'enseignée par S.N.Goenka dans la tradition de Sayagyi U Ba Khin",
|
|
72
|
+
},
|
|
73
|
+
"gu": {
|
|
74
|
+
"reverse": true,
|
|
75
|
+
"language": "Gujarati",
|
|
76
|
+
"vipassana_meditation": "વિપશ્યના સાધના",
|
|
77
|
+
"as_taught": "આચાર્ય ગોયન્કાજી દ્વારા શીખવવામાં",
|
|
78
|
+
"vipassana_as_taught": "આચાર્ય ગોયન્કાજી દ્વારા શીખવવામાં આવતી વિપશ્યના સાધના",
|
|
79
|
+
"in_the_tradition": "સયાજી ઉ બા ખિનની પરંપરામાં",
|
|
80
|
+
"full": "સયાજી ઉ બા ખિનની પરંપરામાં આચાર્ય ગોયન્કાજી દ્વારા શીખવવામાં આવતી વિપશ્યના સાધના"
|
|
81
|
+
},
|
|
82
|
+
"he": {
|
|
83
|
+
"rtl": true,
|
|
84
|
+
"reverse": true,
|
|
85
|
+
"language": "Hebrew",
|
|
86
|
+
"vipassana_meditation": "מדיטציית ויפאסנה",
|
|
87
|
+
"as_taught": "כפי שמלמד ס.נ. גואנקה",
|
|
88
|
+
"in_the_tradition": "במסורתו של סיאג’י או-בה-קין",
|
|
89
|
+
"full": "מדיטציית ויפאסנה כפי שמלמד ס.נ. גואנקה במסורתו של סיאג'י או בה קין"
|
|
90
|
+
},
|
|
91
|
+
"hi": {
|
|
92
|
+
"reverse": true,
|
|
93
|
+
"language": "Hindi",
|
|
94
|
+
"vipassana_meditation": "विपश्यना साधना",
|
|
95
|
+
"as_taught": "आचार्य गोयन्काजी द्वारा सिखायी गयी",
|
|
96
|
+
"vipassana_as_taught": "आचार्य गोयन्काजी द्वारा सिखायी गयी विपश्यना साधना",
|
|
97
|
+
"in_the_tradition": "सयाजी ऊ बा खिन की परंपरा में",
|
|
98
|
+
"full": "सयाजी उ बा खिन की परंपरा में आचार्य गोयन्काजी द्वारा सिखायी गयी विपश्यना साधना"
|
|
99
|
+
},
|
|
100
|
+
"hu": {
|
|
101
|
+
"language": "Hungarian",
|
|
102
|
+
"vipassana_meditation": "Vipassana Meditáció",
|
|
103
|
+
"as_taught": "S.N. Goenka Tanítása szerint",
|
|
104
|
+
"in_the_tradition": "Sayagyi U Ba Khin Hagyományvonalán",
|
|
105
|
+
"full": "Vipassana meditáció S.N. Goenkának a Sayagyi U Ba Khin hagyományvonalán alapuló tanítása szerint"
|
|
106
|
+
},
|
|
107
|
+
"id": {
|
|
108
|
+
"language": "Indonesian",
|
|
109
|
+
"vipassana_meditation": "Vipassana Meditasi",
|
|
110
|
+
"as_taught": "sebagaimana Diajarkan oleh S.N. Goenka",
|
|
111
|
+
"in_the_tradition": "dalam Tradisi Sayagyi U Ba Khin",
|
|
112
|
+
"full": "Meditasi Vipassana sebagaimana diajarkan oleh S.N. Goenka dengan tradisi Sayagyi U Ba Khin"
|
|
113
|
+
},
|
|
114
|
+
"it": {
|
|
115
|
+
"language": "Italian",
|
|
116
|
+
"vipassana_meditation": "Meditazione Vipassana",
|
|
117
|
+
"as_taught": "come Insegnata da S.N. Goenka",
|
|
118
|
+
"in_the_tradition": "nella Tradizione di Sayagyi U Ba Khin",
|
|
119
|
+
"full": "Meditazione Vipassana come insegnata da S. N. Goenka nella tradizione di Sayagyi U Ba Khin"
|
|
120
|
+
},
|
|
121
|
+
"ja": {
|
|
122
|
+
"reverse": true,
|
|
123
|
+
"language": "Japanese",
|
|
124
|
+
"vipassana_meditation": "ヴィパッサナー 瞑想",
|
|
125
|
+
"as_taught": "S.N.ゴエンカの指導による",
|
|
126
|
+
"in_the_tradition": "サヤジ・ウ・バ・キンの伝統のもと",
|
|
127
|
+
"vipassana_as_taught": "S.N.ゴエンカの指導によるヴィパッサナー瞑想",
|
|
128
|
+
"full": "サヤジ・ウ・バ・キンの伝統のもと S.N.ゴエンカの指導によるヴィパッサナー瞑想"
|
|
129
|
+
},
|
|
130
|
+
"km": {
|
|
131
|
+
"language": "Khmer",
|
|
132
|
+
"vipassana_meditation": "វិបស្សនា កម្មដ្ឋាន",
|
|
133
|
+
"as_taught": "បង្រៀនដោយលោក ស.ន. ហ្គោឥនកា",
|
|
134
|
+
"in_the_tradition": "តាមប្រពៃណីរបស់លោក សាយាគ្យី អ៊ូបាឃិន",
|
|
135
|
+
"vipassana_as_taught": "វិបស្សនាកម្មដ្ឋានតាមការបង្រៀនដោយលោក ស.ន. ហ្គោឥនកា",
|
|
136
|
+
"full": "វិបស្សនាកម្មដ្ឋាន បង្រៀនដោយលោក ស.ន. ហ្គោឥនកា តាមប្រពៃណីរបស់លោក សាយាគ្យី អ៊ូបាឃិន"
|
|
137
|
+
},
|
|
138
|
+
"ko": {
|
|
139
|
+
"reverse": true,
|
|
140
|
+
"language": "Korean",
|
|
141
|
+
"vipassana_meditation": "위빳사나 명상",
|
|
142
|
+
"as_taught": "고엥까 선생님이 가르치는",
|
|
143
|
+
"in_the_tradition": "사야지 우바킨의 전통에 따라",
|
|
144
|
+
"vipassana_as_taught": "고엥까 선생님이 가르치는 위빳사나 명상",
|
|
145
|
+
"full": "사야지 우 바 킨의 전통에 따라 S.N. 고엥까 (고엔카) 님이 가르치는 위빳사나 명상",
|
|
146
|
+
},
|
|
147
|
+
"lt": {
|
|
148
|
+
"language": "Lithuanian",
|
|
149
|
+
"vipassana_meditation": "Vipasanos Meditacija",
|
|
150
|
+
"as_taught": "kaip Mokė S.N. Goenka",
|
|
151
|
+
"in_the_tradition": "pagal Sayagyi U Ba Khino Tradiciją",
|
|
152
|
+
"full": "Vipasanos meditacija pagal S. N. Goenkos mokymą ir Sayagyi U Ba Khino tradiciją",
|
|
153
|
+
},
|
|
154
|
+
"lv": {
|
|
155
|
+
"language": "Latvian",
|
|
156
|
+
"vipassana_meditation": "Vipassanas Meditācija",
|
|
157
|
+
"as_taught": "kā to Pasniedz S.N. Goenka",
|
|
158
|
+
"in_the_tradition": "Sayagyi U Ba Khina Tradīcijā",
|
|
159
|
+
"full": "Vipassanas Meditācija kā to pasniedz S. N. Goenka Sayagyi U Ba Khina tradīcijā"
|
|
160
|
+
},
|
|
161
|
+
"mk": {
|
|
162
|
+
"language": "Macedonian",
|
|
163
|
+
"vipassana_meditation": "Випасана медитација",
|
|
164
|
+
"as_taught": "Според подучувањето на С.Н. Гоенка",
|
|
165
|
+
"in_the_tradition": "во традицијата на Сајаги У Ба Кин"
|
|
166
|
+
},
|
|
167
|
+
"mr": {
|
|
168
|
+
"reverse": true,
|
|
169
|
+
"language": "Marathi",
|
|
170
|
+
"vipassana_meditation": "विपश्यना साधना",
|
|
171
|
+
"as_taught": "आचार्य गोयन्काजी द्वारा जशी शिकविली जाते",
|
|
172
|
+
"vipassana_as_taught": "आचार्य गोयन्काजींनी शिकवलेली विपश्यना साधना",
|
|
173
|
+
"in_the_tradition": "सयाजी उ बा खिन ह्यांच्या परंपरेत",
|
|
174
|
+
"full": "सयाजी उ बा खिन ह्यांच्या परंपरेत आचार्य गोयन्काजींनी शिकवलेली विपश्यना साधना"
|
|
175
|
+
},
|
|
176
|
+
"nl": {
|
|
177
|
+
"language": "Dutch",
|
|
178
|
+
"vipassana_meditation": "Vipassana Meditatie",
|
|
179
|
+
"as_taught": "zoals Onderwezen door S.N. Goenka",
|
|
180
|
+
"in_the_tradition": "in de Traditie van Sayagyi U Ba Khin",
|
|
181
|
+
"full": "Vipassana Meditatie zoals onderwezen door S.N. Goenka in de traditie van Sayagyi U Ba Khin"
|
|
182
|
+
},
|
|
183
|
+
"or": {
|
|
184
|
+
"language": "Oriya",
|
|
185
|
+
"vipassana_meditation": "ଭିପାସାନା ସାଧନା",
|
|
186
|
+
"as_taught": "ଯେହେତୁ ଏସ.ଏନ ଗୋଏଙ୍କା",
|
|
187
|
+
"in_the_tradition": "ସାୟାଗି ୟୁ ବା ଖିନଙ୍କ ପରମ୍ପରାରେ",
|
|
188
|
+
"full": "ଭିପାସାନା ସାଧନା ଯେପରି ଏସ୍। ସାୟାଗି ୟୁ ବା ଖିନଙ୍କ ପରମ୍ପରାରେ ଗୋଏଙ୍କା |"
|
|
189
|
+
},
|
|
190
|
+
"pl": {
|
|
191
|
+
"language": "Polish",
|
|
192
|
+
"vipassana_meditation": "Medytacja Vipassana",
|
|
193
|
+
"as_taught": "Nauczana przez S.N. Goenkę",
|
|
194
|
+
"in_the_tradition": "w Tradycji Sayagyi U Ba Khina",
|
|
195
|
+
"full": "Medytacja Vipassana w tradycji Sayagyi U Ba Khina nauczana przez S.N.Goenkę",
|
|
196
|
+
},
|
|
197
|
+
"pt": {
|
|
198
|
+
"language": "Portuguese",
|
|
199
|
+
"vipassana_meditation": "Vipassana Meditação",
|
|
200
|
+
"as_taught": "como Ensinada por S.N. Goenka",
|
|
201
|
+
"in_the_tradition": "na Tradição de Sayagyi U Ba Khin",
|
|
202
|
+
"full": "Meditação Vipasssana como ensinada por S.N. Goenka na tradição de Sayagyi U Ba Khin"
|
|
203
|
+
},
|
|
204
|
+
"ro": {
|
|
205
|
+
"language": "Romanian",
|
|
206
|
+
"vipassana_meditation": "Meditatia Vipassana",
|
|
207
|
+
"as_taught": "asa cum este Predata de S.N. Goenka",
|
|
208
|
+
"in_the_tradition": "în tradiţia lui Sayagyi U Ba Khin",
|
|
209
|
+
"full": "Meditatia Vipassana asa cum este predata de S.N.Goenka, in traditia lui Sayagyi U Ba Khin"
|
|
210
|
+
},
|
|
211
|
+
"ru": {
|
|
212
|
+
"language": "Russian",
|
|
213
|
+
"vipassana_meditation": "Випассана Медитация",
|
|
214
|
+
"as_taught": "как ее Преподает С.Н. Гоенка",
|
|
215
|
+
"in_the_tradition": "в Традиции Саяджи У Ба Кхина",
|
|
216
|
+
"full": "Медитация випассана как ее преподает С.Н. Гоенка в традиции Саяджи У Ба Кхина"
|
|
217
|
+
},
|
|
218
|
+
"si": {
|
|
219
|
+
"reverse": true,
|
|
220
|
+
"language": "Sinhala",
|
|
221
|
+
"vipassana_meditation": "විපස්සනා භාවනාව",
|
|
222
|
+
"as_taught": "එස් එන්. ගොඑන්කා විසින් උගන්වනු ලබන පරිදි",
|
|
223
|
+
"in_the_tradition": "සයාජී ඌ බා කින් තුමාගේ සම්ප්රදායට අනුව",
|
|
224
|
+
"vipassana_as_taught": "විසින් උගන්වනු ලබන විපස්සනා භාවනාව එස්. එන්. ගොඑන්කා",
|
|
225
|
+
"full": "සයාජී ඌ බා කින් තුමාගේ සම්ප්රදායට අනුව එස්. එන්. ගොඑන්කා විසින් උගන්වනු ලබන විපස්සනා භාවනාව"
|
|
226
|
+
},
|
|
227
|
+
"sl": {
|
|
228
|
+
"language": "Slovenian",
|
|
229
|
+
"vipassana_meditation": "Vipassana Meditacija",
|
|
230
|
+
"as_taught": "kot jo poučuje S.N. Goenka",
|
|
231
|
+
"in_the_tradition": "v tradiciji Sayagyi U Ba Khina"
|
|
232
|
+
},
|
|
233
|
+
"sr": {
|
|
234
|
+
"language": "Serbian",
|
|
235
|
+
"vipassana_meditation": "Випассана медитација",
|
|
236
|
+
"as_taught": "Po učenju S.N. Goenke",
|
|
237
|
+
"in_the_tradition": "u Tradiciji Sayagyi U Ba Khin"
|
|
238
|
+
},
|
|
239
|
+
"sv": {
|
|
240
|
+
"language": "Swedish",
|
|
241
|
+
"vipassana_meditation": "Vipassanameditation",
|
|
242
|
+
"as_taught": "som den Lärs ut av S.N. Goenka",
|
|
243
|
+
"in_the_tradition": "i Sayagyi U Ba Khins Tradition",
|
|
244
|
+
"full": "Vipassanameditation som den Lärs ut av S.N. Goenka i Sayagyi U Ba Khins Tradition",
|
|
245
|
+
},
|
|
246
|
+
"ta": {
|
|
247
|
+
"language": "Tamil",
|
|
248
|
+
"vipassana_meditation": "விபஸ்ஸனா தியானம்",
|
|
249
|
+
"as_taught": "ஸயாஜி ஊ பா கின் அவர்களின் வழிமரபில்",
|
|
250
|
+
"in_the_tradition": "திரு. ச.நா. கோயங்கா அவர்களால் கற்பிக்கப்பட்ட முறை",
|
|
251
|
+
"vipassana_as_taught": "விபஸ்ஸனா தியான முறை திரு ச.நா.கோயங்கா அவர்களால் கற்றுக்கொடுக்கப்பட்ட",
|
|
252
|
+
"full": "ஸயாஜி ஊ பா கின் அவர்களின் வழிமரபில் திரு.ச.நா. கோயங்கா அவர்களால் கற்பிக்கப்படும் விபஸ்ஸனா தியான முறை"
|
|
253
|
+
},
|
|
254
|
+
"te": {
|
|
255
|
+
"reverse": true,
|
|
256
|
+
"language": "Telugu",
|
|
257
|
+
"vipassana_meditation": "విపశ్యన ధ్యానం",
|
|
258
|
+
"as_taught": "శ్రీ గోయెంక గారిచే భోదించబడిన",
|
|
259
|
+
"in_the_tradition": "సాయజి ఉ బ ఖిన్ గారి సంప్రదాయంలో",
|
|
260
|
+
"vipassana_as_taught": "శ్రీ గోయెంకా గారు బోధించిన విపశ్యన ధ్యానం",
|
|
261
|
+
"full": "సాయజి ఉబాఖిన్ గారి సంప్రదాయంలో, శ్రీ గోయెంక గారు బోధించిన విపశ్యన ధ్యానం."
|
|
262
|
+
},
|
|
263
|
+
"th": {
|
|
264
|
+
"language": "Thai",
|
|
265
|
+
"vipassana_meditation": "การปฏิบัติวิปัสสนา กรรมฐาน",
|
|
266
|
+
"as_taught": "สอนโดยท่านอาจารย์โกเอ็นก้า",
|
|
267
|
+
"in_the_tradition": "ในแนวทางของท่านซายาจี อูบาขิ่น",
|
|
268
|
+
"full": "การปฏิบัติวิปัสสนากรรมฐาน สอนโดยท่านอาจารย์โกเอ็นก้า ตามแนวทางของท่านอาจารย์อูบาขิ่น"
|
|
269
|
+
},
|
|
270
|
+
"tr": {
|
|
271
|
+
"reverse": true,
|
|
272
|
+
"language": "Turkish",
|
|
273
|
+
"vipassana_meditation": "Vipassana Meditasyonu",
|
|
274
|
+
"as_taught": "S.N. Goenka tarafından Öğretilen",
|
|
275
|
+
"in_the_tradition": "Sayagyi U Ba Khin Geleneğinde",
|
|
276
|
+
"vipassana_as_taught": "S.N. Goenka tarafından öğretilen Vipassana Meditasyonu",
|
|
277
|
+
"full": "Sayagyi U Ba Khin Geleneğinde S.N. Goenka tarafından öğretilen Vipassana Meditasyonu"
|
|
278
|
+
},
|
|
279
|
+
"vi": {
|
|
280
|
+
"language": "Vietnamese",
|
|
281
|
+
"vipassana_meditation": "Thiền Vipassana",
|
|
282
|
+
"as_taught": "do Thiền sư S.N. Goenka Giảng Dạy",
|
|
283
|
+
"in_the_tradition": "theo Truyền thống của Sayagyi U Ba Khin",
|
|
284
|
+
"full": "Thiền Vipassana do Thiền sư S.N. Goenka giảng dạy theo truyền thống của Ngài Sayagyi U Ba Khin"
|
|
285
|
+
},
|
|
286
|
+
"zh-HANS": {
|
|
287
|
+
"language": "Simp. Chinese",
|
|
288
|
+
"vipassana_meditation": "内 观 静 坐",
|
|
289
|
+
"as_taught": "由葛印卡老师所教",
|
|
290
|
+
"as_taught3": "葛印卡老师所教导",
|
|
291
|
+
"in_the_tradition": "传承自乌巴庆老师",
|
|
292
|
+
"vipassana_as_taught": "葛印卡老师所教导的内观静坐",
|
|
293
|
+
"full": "由葛印卡老师所教导, 传承自乌巴庆老师的内观",
|
|
294
|
+
},
|
|
295
|
+
"zh-HANT": {
|
|
296
|
+
"language": "Trad. Chinese",
|
|
297
|
+
"vipassana_meditation": "內 觀 靜 坐",
|
|
298
|
+
"as_taught": "由葛印卡老師所教",
|
|
299
|
+
"in_the_tradition": "傳承自烏巴慶老师",
|
|
300
|
+
"vipassana_as_taught": "葛印卡老師所教導的內觀靜坐",
|
|
301
|
+
"full": "遵循烏巴慶長者所傳、葛印卡老師所教的內觀課程"
|
|
302
|
+
},
|
|
303
|
+
"zh-HANT-HK": {
|
|
304
|
+
"language": "Trad Chinese HK",
|
|
305
|
+
"vipassana_meditation": "內 觀 靜 坐",
|
|
306
|
+
"as_taught": "葛印卡老師所教導",
|
|
307
|
+
"in_the_tradition": "傳承自烏巴慶老師"
|
|
308
|
+
}
|
|
309
|
+
}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import i18n from './i18n.js'
|
|
2
|
+
|
|
3
|
+
function isRtl(locale) {
|
|
4
|
+
return ['ar', 'fa', 'he'].includes(locale)
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export function vdsFaviconTag() {
|
|
8
|
+
return `<link rel="shortcut icon" type="image/x-icon" href="https://design-standards.dhamma.org/dist/favicon.png">`
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
function vdsAssetUrl(path, localhost = false) {
|
|
12
|
+
// For localhost dev, just run vscode liveserver
|
|
13
|
+
if (localhost) return `http://localhost:5500/dist/${path}`
|
|
14
|
+
|
|
15
|
+
return `https://design-standards.dhamma.org/dist/0.0.20/${path}`
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
function stylesheetLinkTag(url) {
|
|
19
|
+
return `<link rel="stylesheet" type="text/css" href="${url}">`
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
function javascriptIncludeTag(url) {
|
|
23
|
+
return `<script type="text/javascript" src="${url}"></script>`
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export function vdsBootstrapThemeCssTag(locale, localhost = false) {
|
|
27
|
+
let tags = [
|
|
28
|
+
stylesheetLinkTag(vdsAssetUrl(`css/bootstrap5-theme${isRtl(locale) ? '.rtl' : ''}.min.css`, localhost))
|
|
29
|
+
]
|
|
30
|
+
// Add specific fonts for languages not compatible with Footlight and Lato
|
|
31
|
+
if (['gu', 'ja', 'km'].includes(locale))
|
|
32
|
+
tags.push(stylesheetLinkTag(vdsAssetUrl(`css/fonts-${locale}.min.css`)))
|
|
33
|
+
|
|
34
|
+
return tags.join('')
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export function vdsBootstrapThemeJsTag(locale, localhost = false) {
|
|
38
|
+
return javascriptIncludeTag(vdsAssetUrl("js/bootstrap5-theme.min.js", localhost))
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function vdsLogo(locale, disposition = "default", size = '18', tagline = true, dark = false) {
|
|
42
|
+
let trans = i18n[locale] || i18n.en
|
|
43
|
+
|
|
44
|
+
if (disposition == "mobile") {
|
|
45
|
+
disposition = "left-two-lines"
|
|
46
|
+
tagline = false
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
return `
|
|
50
|
+
<div class="vipassana-logo"
|
|
51
|
+
data-disposition="${disposition}"
|
|
52
|
+
data-tagline="${tagline}"
|
|
53
|
+
data-dark-mode="${dark}"
|
|
54
|
+
data-reverse="${trans.reverse}"
|
|
55
|
+
style="font-size: ${size}px">
|
|
56
|
+
<img class="logo-wheel" src="https://design-standards.dhamma.org/dist/dhamma-wheel.svg" />
|
|
57
|
+
<div class="logo-text">
|
|
58
|
+
<h1 class="logo-title">
|
|
59
|
+
<span data-start-with="${trans.vipassana_meditation.charAt(0).toLowerCase()}">
|
|
60
|
+
${trans.vipassana_meditation}
|
|
61
|
+
</span>
|
|
62
|
+
<span class="logo-space"> </span>
|
|
63
|
+
<span>${trans.as_taught}</span>
|
|
64
|
+
</h1>
|
|
65
|
+
<div class="logo-subtitle">${trans.in_the_tradition}</div>
|
|
66
|
+
</div>
|
|
67
|
+
</div>
|
|
68
|
+
`
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
// Some icons from bootstrap icons, so all websites use the same
|
|
72
|
+
export function vdsIconLocale() {
|
|
73
|
+
return `
|
|
74
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="1.2em" height="1.2em" fill="currentColor" class="bi bi-translate" viewBox="0 0 16 16">
|
|
75
|
+
<path d="M4.545 6.714 4.11 8H3l1.862-5h1.284L8 8H6.833l-.435-1.286H4.545zm1.634-.736L5.5 3.956h-.049l-.679 2.022H6.18z"/>
|
|
76
|
+
<path d="M0 2a2 2 0 0 1 2-2h7a2 2 0 0 1 2 2v3h3a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-3H2a2 2 0 0 1-2-2V2zm2-1a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h7a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1H2zm7.138 9.995c.193.301.402.583.63.846-.748.575-1.673 1.001-2.768 1.292.178.217.451.635.555.867 1.125-.359 2.08-.844 2.886-1.494.777.665 1.739 1.165 2.93 1.472.133-.254.414-.673.629-.89-1.125-.253-2.057-.694-2.82-1.284.681-.747 1.222-1.651 1.621-2.757H14V8h-3v1.047h.765c-.318.844-.74 1.546-1.272 2.13a6.066 6.066 0 0 1-.415-.492 1.988 1.988 0 0 1-.94.31z"/>
|
|
77
|
+
</svg>
|
|
78
|
+
`
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export function vdsIconAccount() {
|
|
82
|
+
return `
|
|
83
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="2.2em" height="2.2em" fill="currentColor" class="bi bi-person-circle" viewBox="0 0 16 16">
|
|
84
|
+
<path d="M11 6a3 3 0 1 1-6 0 3 3 0 0 1 6 0z"/>
|
|
85
|
+
<path fill-rule="evenodd" d="M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8zm8-7a7 7 0 0 0-5.468 11.37C3.242 11.226 4.805 10 8 10s4.757 1.225 5.468 2.37A7 7 0 0 0 8 1z"/>
|
|
86
|
+
</svg>
|
|
87
|
+
`
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export function vdsIconMenu() {
|
|
91
|
+
return `
|
|
92
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="1.8em" height="1.8em" fill="currentColor" class="bi bi-list" viewBox="0 0 16 16">
|
|
93
|
+
<path fill-rule="evenodd" d="M2.5 12a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm0-4a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm0-4a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5z"/>
|
|
94
|
+
</svg>
|
|
95
|
+
`
|
|
96
|
+
}
|