mirror of
https://github.com/GenderDysphoria/GenderDysphoria.fyi.git
synced 2025-11-25 20:42:40 +00:00
Add Portuguese translation (light version) (#111)
* fix(es): syntax error that prevented compilation * feat(pt): add main text translation * feat(pt): add tweets translation * feat(pt): add PDF generation to GitHub workflow * fix(pt): add misisng translations and formatting fixes * fix(css): link fragment overlap with page header * fix(css): add font Inter before Gothic A1 The Gothic A1 font lacks a few characters necessary for writing Portuguese, namely: á, í, ó, ú, ã, õ, and their upper case versions. * fix(pt): remove 'Glossário' entry from _menu.hbs * fix(build): slugify.js * fix(pt): various typos and a few missing translations. * chore: add .vscode to .gitignore
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
const slugs = require('slugify');
|
||||
|
||||
module.exports = exports = function slugify (s) {
|
||||
const result = slugs(s, { remove: /[*+~.,()'"!?:@/\\]/g }).toLowerCase();
|
||||
const result = s.trim().replace(/[^\p{L}\p{N}]+/ug, '-').replace(/^-+/, '').replace(/-+$/, '').toLowerCase();
|
||||
return result;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user