Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(locales.pl): add pl translation for gender and binary gender #1162

Merged
merged 12 commits into from Jul 26, 2022
9 changes: 0 additions & 9 deletions .eslintrc.js
Expand Up @@ -51,15 +51,6 @@ module.exports = defineConfig({
},
],
'@typescript-eslint/unbound-method': 'off',
'@typescript-eslint/naming-convention': [
'error',
{
format: ['PascalCase'],
selector: ['class', 'interface', 'typeAlias', 'enumMember'],
leadingUnderscore: 'forbid',
trailingUnderscore: 'forbid',
},
],
hankucz marked this conversation as resolved.
Show resolved Hide resolved
},
overrides: [
{
Expand Down
1 change: 1 addition & 0 deletions src/locales/pl/name/binary_gender.ts
@@ -0,0 +1 @@
export default ['Kobieta', 'Mężczyzna'];
26 changes: 26 additions & 0 deletions src/locales/pl/name/gender.ts
@@ -0,0 +1,26 @@
export default [
'Genderqueer',
'Hermafrodyta',
'Inna',
'Kobieta cis',
'Kobieta cispłciowa',
'Kobieta interpłciowa',
'Kobieta trans',
'Kobieta',
'Meżczyzna trans',
'Mężczyzna cis',
'Mężczyzna cispłciowy',
'Mężczyzna interpłciowy',
'Mężczyzna',
'Osoba agender',
'Osoba bigender',
'Osoba gender fluid',
'Osoba interpłciowa',
'Osoba niebinarna',
'Osoba pangender',
'Osoba polygender',
'Osoba trans',
'Transkobieta',
'Transsekualista',
'Transmężczyzna',
];
4 changes: 4 additions & 0 deletions src/locales/pl/name/index.ts
Expand Up @@ -3,17 +3,21 @@
* Run 'pnpm run generate:locales' to update.
*/
import type { NameDefinitions } from '../../..';
import binary_gender from './binary_gender';
import female_first_name from './female_first_name';
import first_name from './first_name';
import gender from './gender';
import last_name from './last_name';
import male_first_name from './male_first_name';
import name_ from './name';
import prefix from './prefix';
import title from './title';

const name: NameDefinitions = {
binary_gender,
female_first_name,
first_name,
gender,
last_name,
male_first_name,
name: name_,
Expand Down
2 changes: 0 additions & 2 deletions src/modules/date/index.ts
Expand Up @@ -20,8 +20,6 @@ function toDate(date?: string | Date | number): Date {
/**
* Module to generate dates.
*/
// disabled until modules are renamed to something with a suffix
// eslint-disable-next-line @typescript-eslint/naming-convention
hankucz marked this conversation as resolved.
Show resolved Hide resolved
export class _Date {
constructor(private readonly faker: Faker) {
// Bind `this` so namespaced is working correctly
Expand Down
3 changes: 0 additions & 3 deletions src/modules/name/index.ts
@@ -1,11 +1,8 @@
import type { Faker } from '../..';
import { deprecated } from '../../internal/deprecated';

// disabled until renamed to Sex
export enum Gender {
// eslint-disable-next-line @typescript-eslint/naming-convention
female = 'female',
// eslint-disable-next-line @typescript-eslint/naming-convention
hankucz marked this conversation as resolved.
Show resolved Hide resolved
male = 'male',
}

Expand Down