diff options
author | EuAndreh <eu@euandre.org> | 2021-04-24 17:38:11 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2021-04-24 17:41:05 -0300 |
commit | 4683e3b721ca32ab8a464306f9b6753b2e5a8ec4 (patch) | |
tree | a7410e0a65bbfc0609228083fc42f4e22e648702 /locale/fr/LC_MESSAGES/_pastebins | |
parent | Add TIL on Lisp's :argument-precedence-order (diff) | |
download | euandre.org-4683e3b721ca32ab8a464306f9b6753b2e5a8ec4.tar.gz euandre.org-4683e3b721ca32ab8a464306f9b6753b2e5a8ec4.tar.xz |
Add po files for new TILs, update whitespace of others
Diffstat (limited to 'locale/fr/LC_MESSAGES/_pastebins')
-rw-r--r-- | locale/fr/LC_MESSAGES/_pastebins/2021-04-03-javascript-naive-slugify.po | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/locale/fr/LC_MESSAGES/_pastebins/2021-04-03-javascript-naive-slugify.po b/locale/fr/LC_MESSAGES/_pastebins/2021-04-03-javascript-naive-slugify.po new file mode 100644 index 0000000..6f638f2 --- /dev/null +++ b/locale/fr/LC_MESSAGES/_pastebins/2021-04-03-javascript-naive-slugify.po @@ -0,0 +1,44 @@ +# +msgid "" +msgstr "" + +msgid "title: JavaScript naive slugify" +msgstr "" + +msgid "date: 2021-04-03" +msgstr "" + +msgid "layout: post" +msgstr "" + +msgid "lang: en" +msgstr "" + +msgid "ref: javascript-naive-slugify" +msgstr "" + +msgid "" +"const s = \"Pézão: açaí, saci-pererê.\";\n" +"\n" +"function slugify(s) {\n" +" return s\n" +" .toLowerCase()\n" +" .replaceAll(\":\", \"\")\n" +" .replaceAll(\".\", \"\")\n" +" .replaceAll(\",\", \"\")\n" +" .replaceAll(\"-\", \"\")\n" +" .replaceAll(\"á\", \"a\")\n" +" .replaceAll(\"ã\", \"a\")\n" +" .replaceAll(\"à\", \"a\")\n" +" .replaceAll(\"é\", \"e\")\n" +" .replaceAll(\"ê\", \"e\")\n" +" .replaceAll(\"í\", \"i\")\n" +" .replaceAll(\"ó\", \"o\")\n" +" .replaceAll(\"ô\", \"o\")\n" +" .replaceAll(\"ú\", \"u\")\n" +" .replaceAll(\"ü\", \"u\")\n" +" .replaceAll(\"ç\", \"c\");\n" +"}\n" +"\n" +"console.log(slugify(s));\n" +msgstr "" |