/
LocalizedStrings.tsx
111 lines (110 loc) · 3.04 KB
/
LocalizedStrings.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
import * as Languages from "./strings";
import LocalizedStrings, { LocalizedStringsMethods } from "react-localization";
/**
* When adding strings:
* all keys should be snake case: like_this
* add strings to MasterStringsList as a <your_string_name>: string
* then add the same key (and a localized value!) to each language file in ./strings
*
* When adding a new language:
* add a file with the appropriate name to ./strings
* add that file to the index in ./strings
* add the languageCode to SUPPORTED_LANGUAGES in ../constants/ProjectConstants
*
* Be aware that you must `npm run build` before `npm run localize` will work if you have made changes
**/
export interface MasterStringsList extends LocalizedStringsMethods {
[propName: string]: any;
keywords: string;
same: string;
select_language: string;
committee: string;
chair: string;
tenure: string;
bills_sponsored: string;
see_documents: string;
jump_to_sentence_video: string;
jump_to_sentence_transcript: string;
search_transcript: string;
search_transcript_placeholder: string;
number_of_results: string;
clear: string;
save: string;
about: string;
search: string;
copyright_notice: string;
content_license_prefix: string;
content_license_link: string;
content_license_link_text: string;
tools_license_prefix: string;
styled_using_prefix: string;
artwork_provided_by_prefix: string;
passed: string;
failed: string;
approve: string;
reject: string;
abstain_approve: string;
abstain_non_voting: string;
abstain_reject: string;
absent_approve: string;
absent_non_voting: string;
absent_reject: string;
rejected: string;
adopted: string;
in_progress: string;
example_prefix: string;
search_topic_placeholder: string;
links: string;
events: string;
event_search_results: string;
people: string;
council_data_project: string;
search_municipality_name: string;
number_approved: string;
number_rejected: string;
number_non_voting: string;
legislation: string;
council_decision: string;
votes: string;
meeting: string;
persons_vote: string;
meeting_votes_caption: string;
en: string;
de: string;
es: string;
date: string;
newest_first: string;
oldest_first: string;
most_relevant_first: string;
closest_match_first: string;
most_relevant: string;
search_results: string;
no_results_found: string;
show_more: string;
legislation_sponsored: string;
menu: string;
persons_voting_record: string;
contact: string;
terms: string;
committee_membership: string;
former_committee_membership: string;
committees: string;
visit_persons_website: string;
alternate: string;
councilmember: string;
member: string;
council_president: string;
vice_chair: string;
supervisor: string;
active: string;
inactive: string;
latest_vote: string;
history: string;
minutes: string;
}
// Note: Add languages to video.js in /src/pages/EventPage/utils when adding new languages
export const strings: MasterStringsList = new LocalizedStrings({
en: Languages.en,
de: Languages.de,
es: Languages.es,
});