-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: i18n
- Loading branch information
Showing
6 changed files
with
58 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"appName": { "message": "gcal-url-opener" }, | ||
"refresh": { "message": "Refresh" }, | ||
"signOut": { "message": "Sign out" }, | ||
"eventStartsIn": { | ||
"message": "$title$ in $startsIn$", | ||
"placeholders": { | ||
"title": { "content": "$1" }, | ||
"startsIn": { "content": "$2" } | ||
} | ||
}, | ||
"meetingsOnToday": { "message": "Meetings on today" }, | ||
"upcomingMeetings": { "message": "Upcoming meetings" }, | ||
"pastMeetings": { "message": "Past meetings" }, | ||
"noMoreUpcomingMeetings": { "message": "No more upcoming meetings." }, | ||
"unAuthorized": { | ||
"message": "You are not logged in to Google. Please log in with the Google account you wish to link your calendar to." | ||
}, | ||
"privacyPolicy": { "message": "Privacy Policy" } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import messages from "../_locales/en/messages.json"; | ||
|
||
export function t( | ||
key: keyof typeof messages, | ||
substitutions?: string | string[] | ||
): string { | ||
return chrome.i18n.getMessage(key, substitutions); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters