2023-09-27 20:59:53 +02:00
2023-09-13 17:28:00 +02:00
2023-09-27 20:59:53 +02:00
2023-09-19 17:09:02 +02:00
2023-09-13 17:28:00 +02:00
2023-08-22 19:07:44 +02:00
2023-07-06 18:32:25 +02:00
2023-07-04 22:36:18 +02:00
2023-08-21 19:23:54 +00:00
2023-05-15 17:43:23 +02:00
2023-08-21 19:23:54 +00:00

Zaimki.pl / Pronouns.page

Installation

git clone git@gitlab.com:PronounsPage/PronounsPage.git

We're using FontAwesome Pro, so to set up a local copy without having a FA license, open package.json and replace

"@fortawesome/fontawesome-pro": "git+ssh://git@gitlab.com:Avris/FontAwesomePro.git",

with

"@fortawesome/fontawesome-pro": "git+ssh://git@gitlab.com:Avris/FakeFontAwesomePro.git",

or, for Git via HTTPS:

"@fortawesome/fontawesome-pro": "git+https://git@gitlab.com/Avris/FakeFontAwesomePro.git",

Do not commit that change!

Build Setup

# install dependencies
$ make install

# configure environment
$ nano .env
$ make switch LANG=pl

# serve with hot reload at localhost:3000
$ make run

# build for production and launch server
$ make deploy
$ nuxt start

See LICENSE.

Development Documentation

Read this first.
When you add a new language, remember to modify the file ./locale/locales.js to add your language:


// Add an object according to the following format:
{code: 'xx', name: 'xx', url: 'https://xx.pronouns.page', published: false , symbol: 'x', family: 'xxx'}

// Setting 'published' to true means that the language was published onto the main site.
// For example: 
{code: 'pt', name: 'Português', url: 'https://pt.pronouns.page', published: true, symbol: 'ã', family: 'romance'}

If you're having problems using Yarn, npm is probably fine, but remember to switch any yarn [x] commands for npm run [x].
Remember to modify the .env file. You don't really need to set up any external APIs, just make up a secret.

// ...
SECRET=replaceThis
// ...

In order to test the login system, you can type in an email followed by a + (example@pronouns.page+). This way, you won't need a mailer, as the code will always be 999999. This feature is exclusive to development builds.

Windows

Current setup depends on working symlinks, which means that an NTFS filesystem is unfortunately required for Windows at the moment.

If you encounter a ParseError, make sure the file is in \n (Line Feed) mode instead of \r\n (Carriage Return Line Feed).

If you want to automate the change, try this.
Make sure that the .editorconfig looks like this:

[*.suml]
end_of_line = lf

Password

For unpublished locales and for the test server, a password is required to access the web interface. If you're on our Discord, you can ask for it there (or just use published: true for local development).

Troubleshooting

If you're having issues with HRM (Hot Module Replacement) not reloading automatically:

  • The modules within package.json are matching the repo's package.json.
  • nuxt.config.js has the following option:
watchers: {
    webpack: {
        aggregateTimeout: 300,
        poll: 1000
    }
}

Current translations being worked on

  • Catalan - @peiprjs
  • Hebrew - @ThatTransGirl
  • [Add yours!]
Description
No description provided
Readme 567 MiB
Languages
HTML 79.5%
TypeScript 9.9%
Vue 9.5%
SCSS 0.4%
Shell 0.3%
Other 0.3%