Kugenda Byihariye

Reka dufate urubuga rwa demo i18n-demo.github.io rwo gusobanura uburyo bwo guhitamo inzira!

Amadosiye ahuye numubare wabaruwe mumashusho yavuzwe haruguru ni aya akurikira:

  1. Ibumoso .i18n/htm/t1.pug
  2. Iburyo .i18n/htm/t2.pug

pug ni inyandikorugero imvugo itanga HTML 's.

Kanda hano wige ikibonezamvugo cya pug

Imiterere yumurongo ${I18N.sponsor} ikoreshwa muri dosiye kugirango ishyire mubikorwa mpuzamahanga, kandi ibiyirimo bizasimburwa ninyandiko ijyanye nububiko bwururimi rwinkomoko i18n.yml

Idosiye ijyanye nuburyo bwo kugenda .i18n/htm/topbar.css :

[!WARN] Ntukandike css na js muri pug , bitabaye ibyo hazabaho ikosa.

Ibigize Urubuga

js ntishobora kwandikwa muri pug Niba imikoranire isabwa, irashobora kugerwaho mugukora urubuga.

Ibigize birashobora gusobanura urubuga rwurubuga muri md/.i18n/htm/index.js hanyuma ugakoresha ibice muri foot.pug .

Biroroshye gukora ibice byurubuga, <x-img> byihariye0.

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);
    }
  }
)

Kugeza ubu x/i-h.js ivugwa muri md/.i18n/htm/index.js , nikintu cyurubuga rukoreshwa 18x/src/i-h.js amahanga kugendana na footer yihariye inyandiko yibirimo Reba.