forked from AmruthPillai/Reactive-Resume
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- implement disable_email_auth env var
- add sync crowdin translations github action
- Loading branch information
1 parent
635f743
commit 1825fc3
Showing
84 changed files
with
2,689 additions
and
2,337 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
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,31 @@ | ||
name: Sync Crowdin Translations | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- v4 | ||
|
||
jobs: | ||
sync: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout Repository | ||
uses: actions/[email protected] | ||
|
||
- name: Sync Translations | ||
uses: crowdin/[email protected] | ||
with: | ||
upload_sources: true | ||
upload_translations: true | ||
download_translations: true | ||
create_pull_request: true | ||
localization_branch_name: "l10n" | ||
pull_request_base_branch_name: "v4" | ||
pull_request_title: "New Translations from Crowdin" | ||
pull_request_body: "You've got new translations to be merged into the app from contributors on Crowdin.\n_This pull request was automatically created by the [Crowdin Action](https://github.com/marketplace/actions/crowdin-action)._" | ||
env: | ||
GITHUB_TOKEN: ${{ github.token }} | ||
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }} | ||
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }} |
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 |
---|---|---|
|
@@ -3,6 +3,8 @@ | |
@tailwind utilities; | ||
|
||
* { | ||
font-variant-ligatures: none; | ||
|
||
@apply border-current; | ||
} | ||
|
||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
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,5 @@ | ||
import { HelmetData } from "react-helmet-async"; | ||
|
||
export const helmetData = new HelmetData({}); | ||
|
||
export const helmetContext = helmetData.context; |
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 |
---|---|---|
@@ -1,8 +1,22 @@ | ||
import { i18n } from "@lingui/core"; | ||
import dayjs from "dayjs"; | ||
|
||
import { dayjsLocales } from "./dayjs"; | ||
|
||
export const defaultLocale = "en-US"; | ||
|
||
export async function dynamicActivate(locale: string) { | ||
const { messages } = await import(`../locales/${locale}/messages.po`); | ||
i18n.loadAndActivate({ locale, messages }); | ||
try { | ||
const { messages } = await import(`../locales/${locale}/messages.po`); | ||
|
||
if (messages) { | ||
i18n.loadAndActivate({ locale, messages }); | ||
} | ||
|
||
if (dayjsLocales[locale]) { | ||
dayjs.locale(await dayjsLocales[locale]()); | ||
} | ||
} catch (error) { | ||
console.error(error); | ||
} | ||
} |
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
Oops, something went wrong.