Debian Codegraph @

ts/l10n/locale.ts

raw symbols SCIP
1 //
2 // Copyright 2017-21 Volker Sorge
3 //
4 // Licensed under the Apache License, Version 2.0 (the "License");
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
7 //
8 // http://www.apache.org/licenses/LICENSE-2.0
9 //
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an "AS IS" BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
15
16 /**
17 * @file Basic message file for l10n.
18 * @author [email protected] (Volker Sorge)
19 */
20
21 import {
22 Alphabetsscip-typescript npm . . l10n/`messages.ts`/Alphabets#,
23 ALPHABETSscip-typescript npm . . l10n/`messages.ts`/ALPHABETS().,
24 Functionsscip-typescript npm . . l10n/`messages.ts`/Functions#,
25 FUNCTIONSscip-typescript npm . . l10n/`messages.ts`/FUNCTIONS().,
26 Messagesscip-typescript npm . . l10n/`messages.ts`/Messages#,
27 MESSAGESscip-typescript npm . . l10n/`messages.ts`/MESSAGES().,
28 Numbersscip-typescript npm . . l10n/`messages.ts`/Numbers#,
29 NUMBERSscip-typescript npm . . l10n/`messages.ts`/NUMBERS().,
30 SubIsoscip-typescript npm . . l10n/`messages.ts`/SubIso#,
31 SUBISOscip-typescript npm . . l10n/`messages.ts`/SUBISO().
32 } from './messages.js'scip-typescript npm . . l10n/`messages.ts`/;
33 import * as trscip-typescript npm . . l10n/`transformers.ts`/ from './transformers.js'scip-typescript npm . . l10n/`transformers.ts`/;
34
35 // One (or more) flat message object per rule set.
36 export interface Localescip-typescript npm . . l10n/`locale.ts`/Locale# {
37 FUNCTIONSscip-typescript npm . . l10n/`locale.ts`/Locale#FUNCTIONS.: Functionsscip-typescript npm . . l10n/`messages.ts`/Functions#;
38 MESSAGESscip-typescript npm . . l10n/`locale.ts`/Locale#MESSAGES.: Messagesscip-typescript npm . . l10n/`messages.ts`/Messages#;
39 ALPHABETSscip-typescript npm . . l10n/`locale.ts`/Locale#ALPHABETS.: Alphabetsscip-typescript npm . . l10n/`messages.ts`/Alphabets#;
40 NUMBERSscip-typescript npm . . l10n/`locale.ts`/Locale#NUMBERS.: Numbersscip-typescript npm . . l10n/`messages.ts`/Numbers#;
41 COMBINERSscip-typescript npm . . l10n/`locale.ts`/Locale#COMBINERS.?: { [key: string]: trscip-typescript npm . . l10n/`transformers.ts`/.Combinerscip-typescript npm . . l10n/`transformers.ts`/Combiner# };
42 CORRECTIONSscip-typescript npm . . l10n/`locale.ts`/Locale#CORRECTIONS.?: { [key: string]: (a: string) => string };
43 SUBISOscip-typescript npm . . l10n/`locale.ts`/Locale#SUBISO.: SubIsoscip-typescript npm . . l10n/`messages.ts`/SubIso#;
44 }
45
46 export const LOCALEscip-typescript npm . . l10n/`locale.ts`/LOCALE.: Localescip-typescript npm . . l10n/`locale.ts`/Locale# = createLocalescip-typescript npm . . l10n/`locale.ts`/createLocale().();
47
48 /**
49 * @returns Creates a locale structure.
50 */
51 export function createLocalescip-typescript npm . . l10n/`locale.ts`/createLocale().(): Localescip-typescript npm . . l10n/`locale.ts`/Locale# {
52 return {
53 /**
54 * Localisable parse functions
55 */
56 FUNCTIONSscip-typescript npm . . l10n/`locale.ts`/Locale#FUNCTIONS.: FUNCTIONSscip-typescript npm . . l10n/`messages.ts`/FUNCTIONS().(),
57
58 /**
59 * The messages content.
60 */
61 MESSAGESscip-typescript npm . . l10n/`locale.ts`/Locale#MESSAGES.: MESSAGESscip-typescript npm . . l10n/`messages.ts`/MESSAGES().(),
62
63 /**
64 * The Alphabets content.
65 */
66 ALPHABETSscip-typescript npm . . l10n/`locale.ts`/Locale#ALPHABETS.: ALPHABETSscip-typescript npm . . l10n/`messages.ts`/ALPHABETS().(),
67
68 /**
69 * Localisable number computation.
70 */
71 NUMBERSscip-typescript npm . . l10n/`locale.ts`/Locale#NUMBERS.: NUMBERSscip-typescript npm . . l10n/`messages.ts`/NUMBERS().(),
72
73 /**
74 * Combiners that can be reference in Messages.
75 */
76 COMBINERSscip-typescript npm . . l10n/`locale.ts`/Locale#COMBINERS.: {},
77
78 /**
79 * Grammatical corrections for this locale.
80 */
81 CORRECTIONSscip-typescript npm . . l10n/`locale.ts`/Locale#CORRECTIONS.: {},
82
83 /**
84 * Supplementary iso country codes or similar country specific speech,
85 * numbers, etc.
86 */
87 SUBISOscip-typescript npm . . l10n/`locale.ts`/Locale#SUBISO.: SUBISOscip-typescript npm . . l10n/`messages.ts`/SUBISO().()
88 };
89 }