mirror of
https://github.com/GenderDysphoria/GenderDysphoria.fyi.git
synced 2025-11-25 12:32:42 +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:
@@ -3,6 +3,7 @@ module.exports = exports = [
|
||||
require('../public/de/_concat.json'),
|
||||
require('../public/en/_concat.json'),
|
||||
require('../public/es/_concat.json'),
|
||||
require('../public/pt/_concat.json'),
|
||||
require('../public/fr/_concat.json'),
|
||||
require('../public/hu/_concat.json'),
|
||||
require('../public/pl/_concat.json'),
|
||||
|
||||
@@ -24,6 +24,7 @@ const str2locale = {
|
||||
'fr': dateFNSLocales.fr,
|
||||
'hu': dateFNSLocales.hu,
|
||||
'pl': dateFNSLocales.pl,
|
||||
'pt': dateFNSLocales.pt,
|
||||
'es': dateFNSLocales.es,
|
||||
};
|
||||
|
||||
|
||||
@@ -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