Skip to content

Commit a5ffca1

Browse files
authored
refactor(locale)!: use singular locale definition keys (#2932)
1 parent 2a2a132 commit a5ffca1

59 files changed

Lines changed: 71 additions & 70 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

docs/guide/upgrading.md

Lines changed: 4 additions & 3 deletions

src/definitions/lorem.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ export type LoremDefinition = LocaleEntry<{
77
/**
88
* Lorem words used to generate dummy texts.
99
*/
10-
words: string[];
10+
word: string[];
1111
}>;

src/definitions/system.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ export type SystemDefinition = LocaleEntry<{
77
/**
88
* Returns some common file paths.
99
*/
10-
directory_paths: string[];
10+
directory_path: string[];
1111

1212
/**
1313
* The mime type definitions with some additional information.
1414
*/
15-
mime_types: { [mimeType: string]: SystemMimeTypeEntryDefinition };
15+
mime_type: { [mimeType: string]: SystemMimeTypeEntryDefinition };
1616
}>;
1717

1818
/**

src/locales/ar/lorem/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
* Run 'pnpm run generate:locales' to update.
44
*/
55
import type { LoremDefinition } from '../../..';
6-
import words from './words';
6+
import word from './word';
77

88
const lorem: LoremDefinition = {
9-
words,
9+
word,
1010
};
1111

1212
export default lorem;
File renamed without changes.

src/locales/base/system/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
* Run 'pnpm run generate:locales' to update.
44
*/
55
import type { SystemDefinition } from '../../..';
6-
import directory_paths from './directory_paths';
7-
import mime_types from './mime_types';
6+
import directory_path from './directory_path';
7+
import mime_type from './mime_type';
88

99
const system: SystemDefinition = {
10-
directory_paths,
11-
mime_types,
10+
directory_path,
11+
mime_type,
1212
};
1313

1414
export default system;

src/locales/cs_CZ/lorem/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
* Run 'pnpm run generate:locales' to update.
44
*/
55
import type { LoremDefinition } from '../../..';
6-
import words from './words';
6+
import word from './word';
77

88
const lorem: LoremDefinition = {
9-
words,
9+
word,
1010
};
1111

1212
export default lorem;

0 commit comments

Comments
 (0)