1.0.5 • Published 1 year ago

fancy-welcome v1.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

fancy-welcome

Simply greeting people with various language

Instalation

First you need animate.css package to make fancy-welcome work, simply just add it directly to your webpage using a CDN

$ npm install fancy-welcome
<head>
  <link
    rel="stylesheet"
    href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css"
  />
</head>

We recommend you set up with a JS module bundler like Vite, of which we have an example here (using Vite) fancy-welcome-playground

How To use:

import 'animate.css' // this is required
import fancy from 'fancy-welcome';
import 'fancy-welcome/dist/style.css'

// Render a welcome page
document.addEventListener("DOMContentLoaded", () => {
  fancy.render({
    //  - Language
    language: "Japanese",
    includeNativeWord: false, // example -> for Japanese word the word of (こんにちは) will not be rendered

    //  - Animation
    animationName: "fadeIn", // see (https://animate.style/) for more
    animateDuration: "1.2s",
  });
});

If you want to render a multiple language you can pass an array with specified language props

import 'animate.css' // this is required
import fancy from 'fancy-welcome';
import 'fancy-welcome/style.css'

// Render a welcome page
document.addEventListener("DOMContentLoaded", () => {
  fancy.render({
    //  - Language
    language: ["Japanese", "Indonesian", "Vietnamese" , "Russian"],

    //  - Animation
    animationName: "fadeIn", // see (https://animate.style/) for more
    animateDuration: "1.2s",
  });
});

if you want the list to be rendered on same order of your language list (default values are random), then simply just add exactOrderLanguage props set to true

exactOrderLanguage : true

if you want to eliminate the native word, like the word of (こんにちは) for Japanese or (नमस्कार) for Namaskāra.

add includeNativeWord: false to the fancy.render obj

 includeNativeWord: false, // example -> for  the word of (こんにちは) will not be rendered, instead only render Konichiwa

If you want to render all of the language then just change the language props to "all", it will render 100+ language before fancy welcome element destroy

language : "all" 

Using fancy.greetings

if you only need the greetings data and want to modify the element by your self (not using fancy.render) you can get it by using fancy.greetings

import fancy from 'fancy-welcome'

const data = fancy.greetings({
    language : "all", // "all" | ["Indonesia", "Japanese" , "..."] | "Indonesia"
    exactOrderLanguage: true, // true | false
    includeNativeWord: false // true | false
})

List of the language

languageword
AfrikaansHallo
AlbanianPërshëndetje
AmharicIwi selami newi (እው ሰላም ነው)
ArabicMarhaba (مرحبًا)
ArmenianBarev
AymaraKamisaki
AzerbaijaniSalam
BasqueKaixo
BelarusianVitaju (Вітаю)
BengaliHyālō (হ্যালো)
BosnianZdravo
BulgarianZdraveĭte (Здравейте)
BurmeseHaallo (ဟယ်လို)
CantoneseNǐ hǎo (你好)
CatalanHola
CebuanoKamusta
ChichewaMoni
CorsicanBonghjornu
CroatianZdravo
CzechAhoj
DanishHej
DutchHallo
EnglishHello
EstonianTere
EweHello
Farsi (Persian)Salām (سلام)
FijianBula
FilipinoKumusta
FinnishHei
FrenchBonjour
Gaelic (Irish)Dia dhuit
GalicianOla
GeorgianGamarjoba (გამარჯობა)
GermanGuten tag
GreekGeia (γεια)
GuaraniMba'éichapa
Haitian CreoleBonjou
HawaiianAloha
HebrewShalom (שלום)
HindiNamaste (नमस्ते)
HmongNyob zoo
HungarianSzia
IcelandicHalló
IgboNdewo
IlocanoHello
IndonesianHalo
ItalianCiao
JapaneseKonichiwa (こんにちは)
KazakhSälemetsiz be (Сәлеметсіз бе)
KhmerSuostei (សួស្តី)
KinyarwandaMwaramutse
KoreanAnyeong haseyo (안녕하세요)
KurdishSlav
LaoSabaidi (ສະບາຍດີ)
LatinSalve
LatvianSveika (male) or Sveiks (female)
LithuanianSveiki
LuxembourgishMoien
MalagasySalama
MalteseBongu
MandarinNǐ hǎo (你好)
MaoriKia ora
MarathiNamaskāra (नमस्कार)
MongolianSain uu (сайн уу)
NahuatlNiltze Tialli Pialli
NavajoYa’at’eeh
NepaliNamaskāra (नमस्कार)
NorwegianHei
PashtoSalam (سلام)
PolishCześć
PortugueseOlá
PunjabiSata srī akāla (ਸਤ ਸ੍ਰੀ ਅਕਾਲ)
OromoAkkam
QuechuaAllianchu
RomanianBunâ
RussianPrivet (Привет)
SamoanTalofa
SepediThobela
SerbianZdravo (Здраво)
SesothoDumela
SlovakAhoj
SlovenianZdravo
SomaliHello
SpanishHola
SwahiliJambo
SwedishHallå
TagalogKamusta
TahitianIa Orana
TaiwaneseLi-hó
TamilVanakkam (வணக்கம்)
ThaiS̄wạs̄dī (สวัสดี)
TibetanTashi delek
TonganMālō e lelei
TsongaAvuxeni
TurkishMerhaba
UkrainianPrivit (привіт)
UrduAssalāmu Alaykum (السلام عليكم)
UzbekSalom
VietnameseXin chào
WelshHelo
XhosaMolo
1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago