Skip to content

Commit

Permalink
Localization (#279)
Browse files Browse the repository at this point in the history
* Got localization working

* Removed i18n

* Cleaned up locale

* Added labels to a few sample pages.

* Added post install code

* Updated apphelper
  • Loading branch information
jzongker authored Jun 17, 2024
1 parent 058da1b commit d8c96b3
Show file tree
Hide file tree
Showing 11 changed files with 270 additions and 48 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
*.bat
/build
/public/apphelper

# Logs
logs
Expand Down
18 changes: 12 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# CHUMS

> **CHUMS** is completely free, open-source **CHU**rch **M**anagement **S**oftware that allows you to manage key data on church members and visitors. It offers comprehensive features including member and guest information tracking, attendance management with a self check-in app, group coordination, donation tracking with detailed reports, and custom form creation. Visit <a href="https://chums.org/">https://chums.org/</a> to learn more.
> **CHUMS** is completely free, open-source **CHU**rch **M**anagement **S**oftware that allows you to manage key data on church members and visitors. It offers comprehensive features including member and guest information tracking, attendance management with a self check-in app, group coordination, donation tracking with detailed reports, and custom form creation. Visit <a href="https://chums.org/">https://chums.org/</a> to learn more.
<div style="display: flex;gap: 10px;">
<img style="width: 49%;" src="https://github.com/ChurchApps/ChumsApp/assets/1447203/ccb5dc7b-8c0d-4320-abac-a3128c42beff">
Expand All @@ -16,22 +16,28 @@
## Get Involved

### 🤝 Help Support Us

The only reason this program is free is because of the generous support from users. If you want to support us to keep this free, please head over to [ChurchApps](https://churchapps/partner) or [sponsor us on GitHub](https://github.com/sponsors/ChurchApps/). Thank you so much!

### 🏘️ Join the Community
We have a great community for end-users on [Facebook](https://www.facebook.com/churchapps.org). It's a good way to ask questions, get tips and follow new updates. Come join us!

We have a great community for end-users on [Facebook](https://www.facebook.com/churchapps.org). It's a good way to ask questions, get tips and follow new updates. Come join us!

### ⚠️ Report an Issue
If you discover an issue or have a feature request, simply submit it to our [issues log](https://github.com/ChurchApps/ChurchAppsSupport). Don't be shy, that's how the program gets better.

If you discover an issue or have a feature request, simply submit it to our [issues log](https://github.com/ChurchApps/ChurchAppsSupport). Don't be shy, that's how the program gets better.

### 💬 Join us on Slack
If you would like to contribute in any way, head over to our [Slack Channel](https://join.slack.com/t/livechurchsolutions/shared_invite/zt-i88etpo5-ZZhYsQwQLVclW12DKtVflg) and introduce yourself. We'd love to hear from you.

If you would like to contribute in any way, head over to our [Slack Channel](https://join.slack.com/t/livechurchsolutions/shared_invite/zt-i88etpo5-ZZhYsQwQLVclW12DKtVflg) and introduce yourself. We'd love to hear from you.

### 🏗️ Start Coding
If you'd like to set up the project locally, see our [development guide](https://churchapps.org/dev). The short version is:

If you'd like to set up the project locally, see our [development guide](https://churchapps.org/dev). The short version is:

1. Copy `dotenv.sample.txt` to `.env` and updated it to point to the appropriate API urls.
2. Install the dependencies with: `npm install`
3. run `npm start` to launch the project.
3. Run `npm run postinstall` to get language files
4. run `npm start` to launch the project.

[![ChumsApp Dev Setup](https://img.youtube.com/vi/5zsEJEp6yMw/0.jpg)](https://www.youtube.com/watch?v=5zsEJEp6yMw)
185 changes: 169 additions & 16 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@churchapps/apphelper": "0.2.29",
"@churchapps/apphelper": "0.2.31",
"@mui/icons-material": "^5.14.7",
"@mui/material": "^5.14.7",
"@types/react-cropper": "^1.3.2",
Expand All @@ -22,6 +22,7 @@
"devDependencies": {
"@types/react": "^18.2.21",
"@types/react-dom": "^18.2.7",
"copyfiles": "^2.4.1",
"lint-staged": "^14.0.1"
},
"scripts": {
Expand All @@ -31,14 +32,15 @@
"eject": "react-scripts eject",
"lint:only": "eslint --ext ts,tsx,js",
"lint:fix": "npm run lint:only -- --fix",
"predeploy-staging": "export REACT_APP_STAGE=staging&& npm run build",
"predeploy-staging": "export REACT_APP_STAGE=staging && npm run postinstall && npm run build",
"exec-deploy-staging": "aws s3 sync build/ s3://staging-chums-app",
"postdeploy-staging": "aws cloudfront create-invalidation --distribution-id E2SBDXIK2UVHM9 --paths \"/*\"",
"deploy-staging": "npm run predeploy-staging && npm run exec-deploy-staging && npm run postdeploy-staging",
"predeploy-prod": "export REACT_APP_STAGE=prod&& npm run build",
"predeploy-prod": "export REACT_APP_STAGE=prod && npm run postinstall && npm run build",
"exec-deploy-prod": "aws s3 sync build/ s3://chums-app",
"postdeploy-prod": "aws cloudfront create-invalidation --distribution-id E3FB2K4FSP7ZUB --paths \"/*\"",
"deploy-prod": "npm run predeploy-prod && npm run exec-deploy-prod && npm run postdeploy-prod"
"deploy-prod": "npm run predeploy-prod && npm run exec-deploy-prod && npm run postdeploy-prod",
"postinstall": "copyfiles -a -f node_modules/@churchapps/apphelper/public/locales/** public/apphelper/locales"
},
"lint-staged": {
"src/**/*.{ts,tsx,js}": [
Expand Down
Loading

0 comments on commit d8c96b3

Please sign in to comment.