Fael ahorow a ɛne mmeae a wɔde nɔma ahyɛ mu wɔ atifi hɔ mfonini no mu hyia no te sɛ nea edidi so yi:
.i18n/htm/t1.pug
.i18n/htm/t2.pug
pug
yɛ template kasa a ɛma HTML
's.
➔ Klik ha na sua kasa mmara a ɛwɔ pug
Wɔde format string ${I18N.sponsor}
di dwuma wɔ fael no mu de di dwuma wɔ amanaman ntam nkitahodi mu, na wɔde nsɛm a ɛne no hyia wɔ i18n.yml
Fael a ɛne ɔkwan a wɔfa .i18n/htm/topbar.css
:
[!WARN] Nkyerɛw
css
nejs
wɔpug
mu , anyɛ saa a mfomso bi bɛba.
pug
ntumi nkyerɛw js
Sɛ nkitahodi ho hia a, wobetumi anya denam wɛb fã bi a wɔbɛbɔ so.
Components betumi akyerɛkyerɛ wɛb krataafa component bi mu wɔ md/.i18n/htm/index.js
mu na afei wɔde component no adi dwuma wɔ foot.pug
mu .
Ɛnyɛ den sɛ wobɛbɔ wɛb afã horow, te sɛ custom <x-img>
.
customElements.define(
'x-img',
class extends HTMLElement {
constructor() {
super();
var img = document.createElement('img');
img.src = '//p.3ti.site/i18n.svg';
img.style = "height:99px;width:99px;";
this.append(img);
}
}
)
Mprempren x/i-h.js
yɛ reference wɔ md/.i18n/htm/index.js
, a ɛyɛ wɛb fã a wɔde di dwuma ma amanaman ntam akwantu ne footer customized content text Hwɛ source code 18x/src/i-h.js