1
0
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:
G Queiroz
2022-10-23 14:49:09 -03:00
committed by GitHub
parent 7999885025
commit efe9c502cf
67 changed files with 3189 additions and 542 deletions

View File

@@ -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'),

View File

@@ -24,6 +24,7 @@ const str2locale = {
'fr': dateFNSLocales.fr,
'hu': dateFNSLocales.hu,
'pl': dateFNSLocales.pl,
'pt': dateFNSLocales.pt,
'es': dateFNSLocales.es,
};

View File

@@ -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;
};