Fayiro ezikwatagana n’ebitundu ebirina ennamba mu kifaananyi waggulu ze zino wammanga:
.i18n/htm/t1.pug
.i18n/htm/t2.pug
pug
lulimi lwa template olukola HTML
's.
➔ Nyiga wano oyige grammar ya pug
Omuguwa gw'ensengeka ${I18N.sponsor}
gukozesebwa mu fayiro okussa mu nkola enkola y'ensi yonna, era ebirimu bijja kukyusibwamu ebiwandiiko ebikwatagana mu i18n.yml
Fayiro ekwatagana n'omusono gw'ebbaala .i18n/htm/topbar.css
eri :
[!WARN] Towandiika
css
nejs
mupug
, bwe kitaba ekyo wajja kubaawo ensobi.
js
tesobola kuwandiikibwa mu pug
Singa enkolagana yeetaagibwa, esobola okutuukibwako nga tukola ekitundu ky’omukutu.
Ebitundu bisobola okunnyonnyola ekitundu ky'olupapula lw'omukutu mu md/.i18n/htm/index.js
n'oluvannyuma ne bikozesa ekitundu mu foot.pug
.
Kyangu okukola ebitundu by'omukutu, gamba nga 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);
}
}
)
Mu kiseera kino x/i-h.js
ejuliziddwa mu md/.i18n/htm/index.js
, nga kino kitundu kya mukutu ekikozesebwa okufuula okutambulira mu nsi yonna n'ebiwandiiko ebirimu ebirongooseddwa wansi Laba ensibuko 18x/src/i-h.js