Skip to content

Commit 90424ba

Browse files
authored
Merge pull request #770 from gitroomhq/feat/multi-language
Added multi-language option
2 parents d4715dc + 8064e19 commit 90424ba

File tree

440 files changed

+47313
-20394
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

440 files changed

+47313
-20394
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,5 @@ Thumbs.db
5656

5757
# ignore Secrets folder
5858
.secrets/
59-
libraries/plugins/src/plugins.ts
59+
libraries/plugins/src/plugins.ts
60+
i18n.cache

CODE_OF_CONDUCT.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,23 +17,23 @@ diverse, inclusive, and healthy community.
1717
Examples of behavior that contributes to a positive environment for our
1818
community include:
1919

20-
* Demonstrating empathy and kindness toward other people
21-
* Being respectful of differing opinions, viewpoints, and experiences
22-
* Giving and gracefully accepting constructive feedback
23-
* Accepting responsibility and apologizing to those affected by our mistakes,
20+
- Demonstrating empathy and kindness toward other people
21+
- Being respectful of differing opinions, viewpoints, and experiences
22+
- Giving and gracefully accepting constructive feedback
23+
- Accepting responsibility and apologizing to those affected by our mistakes,
2424
and learning from the experience
25-
* Focusing on what is best not just for us as individuals, but for the
25+
- Focusing on what is best not just for us as individuals, but for the
2626
overall community
2727

2828
Examples of unacceptable behavior include:
2929

30-
* The use of sexualized language or imagery, and sexual attention or
30+
- The use of sexualized language or imagery, and sexual attention or
3131
advances of any kind
32-
* Trolling, insulting or derogatory comments, and personal or political attacks
33-
* Public or private harassment
34-
* Publishing others' private information, such as a physical or email
32+
- Trolling, insulting or derogatory comments, and personal or political attacks
33+
- Public or private harassment
34+
- Publishing others' private information, such as a physical or email
3535
address, without their explicit permission
36-
* Other conduct which could reasonably be considered inappropriate in a
36+
- Other conduct which could reasonably be considered inappropriate in a
3737
professional setting
3838

3939
## Enforcement Responsibilities
@@ -106,7 +106,7 @@ Violating these terms may lead to a permanent ban.
106106
### 4. Permanent Ban
107107

108108
**Community Impact**: Demonstrating a pattern of violation of community
109-
standards, including sustained inappropriate behavior, harassment of an
109+
standards, including sustained inappropriate behavior, harassment of an
110110
individual, or aggression toward or disparagement of classes of individuals.
111111

112112
**Consequence**: A permanent ban from any sort of public interaction within

CONTRIBUTING.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ As a general rule;
2121
## Types of Contributions
2222

2323
Contributions can include:
24+
2425
- **Code improvements:** Fixing bugs or adding new features.
2526
- **Documentation updates:** Enhancing clarity or adding missing information.
2627
- **Feature requests:** Suggesting new capabilities or integrations.
@@ -39,17 +40,15 @@ This project follows a Fork/Feature Branch/Pull Request model. If you're not fam
3940
```bash
4041
git checkout -b feature/your-feature-name
4142
```
42-
6. **Make your changes**: Implement the changes you wish to contribute.
43-
7. **Push your changes**: Upload your changes to your fork.
43+
4. **Make your changes**: Implement the changes you wish to contribute.
44+
5. **Push your changes**: Upload your changes to your fork.
4445
```bash
4546
git push -u origin feature/your-feature-name
4647
```
47-
9. **Create a pull request**: Propose your changes **to the main branch**.
48-
48+
6. **Create a pull request**: Propose your changes **to the main branch**.
4949

5050
# Need Help?
5151

5252
Again, do check the [developer guide](https://docs.postiz.com/developer-guide). Much of what you probably need to know is in there.
5353

5454
If you encounter any issues, please visit our [support page](https://docs.postiz.com/support) or check the community forums. Your contributions help make Postiz better!
55-

README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
</a>
1414
</p>
1515

16-
1716
<p align="center">
1817
<a href="https://opensource.org/licenses/Apache-2.0">
1918
<img src="https://img.shields.io/badge/License-Apache%202.0-blue.svg" alt="License">
@@ -28,7 +27,6 @@
2827
Postiz offers everything you need to manage your social media posts,<br />build an audience, capture leads, and grow your business.
2928
</div>
3029

31-
3230
<div class="flex" align="center">
3331
<br />
3432
<img alt="Instagram" src="https://postiz.com/svgs/socials/Instagram.svg" width="32">
@@ -77,7 +75,7 @@
7775
## ✨ Features
7876

7977
| ![Image 1](https://github.com/user-attachments/assets/a27ee220-beb7-4c7e-8c1b-2c44301f82ef) | ![Image 2](https://github.com/user-attachments/assets/eb5f5f15-ed90-47fc-811c-03ccba6fa8a2) |
80-
|--------------------------------|--------------------------------|
78+
| ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- |
8179
| ![Image 3](https://github.com/user-attachments/assets/d51786ee-ddd8-4ef8-8138-5192e9cfe7c3) | ![Image 4](https://github.com/user-attachments/assets/91f83c89-22f6-43d6-b7aa-d2d3378289fb) |
8280

8381
# Intro
@@ -98,9 +96,11 @@
9896
- Resend (email notifications)
9997

10098
## Quick Start
99+
101100
To have the project up and running, please follow the [Quick Start Guide](https://docs.postiz.com/quickstart)
102101

103102
## Invest in the Postiz Coin :)
103+
104104
DMsTbeCfX1crgAse5tver98KAMarPWeP3d6U3Gmmpump
105105

106106
# License
@@ -112,5 +112,3 @@ This repository's source code is available under the [AGPL-3.0 license](LICENSE)
112112
<p align="center">
113113
<a href="https://www.g2.com/products/postiz/take_survey" target="blank"><img alt="g2" src="https://github.com/user-attachments/assets/892cb74c-0b49-4589-b2f5-fbdbf7a98f66" /></a>
114114
</p>
115-
116-

SECURITY.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ The Postiz app is committed to ensuring the security and integrity of our users'
88

99
If you discover a security vulnerability in the Postiz app, please report it to us privately via email to one of the maintainers:
1010

11-
* @nevo-david
12-
* @egelhaus ([email](mailto:[email protected]))
11+
- @nevo-david
12+
- @egelhaus ([email](mailto:[email protected]))
1313

1414
When reporting a security vulnerability, please provide as much detail as possible, including:
1515

16-
* A clear description of the vulnerability
17-
* Steps to reproduce the vulnerability
18-
* Any relevant code or configuration files
16+
- A clear description of the vulnerability
17+
- Steps to reproduce the vulnerability
18+
- Any relevant code or configuration files
1919

2020
## Supported Versions
2121

@@ -31,10 +31,10 @@ We will not publicly disclose security vulnerabilities until a patch or fix is a
3131

3232
We take security vulnerabilities seriously and will respond promptly to reports of vulnerabilities. Our response process includes:
3333

34-
* Investigating the report and verifying the vulnerability.
35-
* Developing a patch or fix for the vulnerability.
36-
* Releasing the patch or fix as soon as possible.
37-
* Notifying users of the vulnerability and the patch or fix.
34+
- Investigating the report and verifying the vulnerability.
35+
- Developing a patch or fix for the vulnerability.
36+
- Releasing the patch or fix as soon as possible.
37+
- Notifying users of the vulnerability and the patch or fix.
3838

3939
## Template Attribution
4040

apps/backend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@
1111
"keywords": [],
1212
"author": "",
1313
"license": "ISC"
14-
}
14+
}

apps/backend/src/api/api.module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ const authenticatedController = [
7474
TrackService,
7575
ShortLinkService,
7676
Nowpayments,
77-
McpService
77+
McpService,
7878
],
7979
get exports() {
8080
return [...this.imports, ...this.providers];

apps/backend/src/api/routes/analytics.controller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import { IntegrationManager } from '@gitroom/nestjs-libraries/integrations/integ
2121
export class AnalyticsController {
2222
constructor(
2323
private _starsService: StarsService,
24-
private _integrationService: IntegrationService,
24+
private _integrationService: IntegrationService
2525
) {}
2626
@Get('/')
2727
async getStars(@GetOrgFromRequest() org: Organization) {

apps/backend/src/api/routes/copilot.controller.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,12 @@ export class CopilotController {
1313
constructor(private _subscriptionService: SubscriptionService) {}
1414
@Post('/chat')
1515
chat(@Req() req: Request, @Res() res: Response) {
16-
if (process.env.OPENAI_API_KEY === undefined || process.env.OPENAI_API_KEY === '') {
16+
if (
17+
process.env.OPENAI_API_KEY === undefined ||
18+
process.env.OPENAI_API_KEY === ''
19+
) {
1720
Logger.warn('OpenAI API key not set, chat functionality will not work');
18-
return
21+
return;
1922
}
2023

2124
const copilotRuntimeHandler = copilotRuntimeNestEndpoint({

apps/backend/src/api/routes/integrations.controller.ts

Lines changed: 28 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -87,35 +87,34 @@ export class IntegrationsController {
8787
async getIntegrationList(@GetOrgFromRequest() org: Organization) {
8888
return {
8989
integrations: await Promise.all(
90-
(await this._integrationService.getIntegrationsList(org.id)).map(
91-
async (p) => {
92-
const findIntegration =
93-
this._integrationManager.getSocialIntegration(
94-
p.providerIdentifier
95-
);
96-
return {
97-
name: p.name,
98-
id: p.id,
99-
internalId: p.internalId,
100-
disabled: p.disabled,
101-
picture: p.picture || '/no-picture.jpg',
102-
identifier: p.providerIdentifier,
103-
inBetweenSteps: p.inBetweenSteps,
104-
refreshNeeded: p.refreshNeeded,
105-
isCustomFields: !!findIntegration.customFields,
106-
...(findIntegration.customFields
107-
? { customFields: await findIntegration.customFields() }
108-
: {}),
109-
display: p.profile,
110-
type: p.type,
111-
time: JSON.parse(p.postingTimes),
112-
changeProfilePicture: !!findIntegration?.changeProfilePicture,
113-
changeNickName: !!findIntegration?.changeNickname,
114-
customer: p.customer,
115-
additionalSettings: p.additionalSettings || '[]',
116-
};
117-
}
118-
)
90+
(
91+
await this._integrationService.getIntegrationsList(org.id)
92+
).map(async (p) => {
93+
const findIntegration = this._integrationManager.getSocialIntegration(
94+
p.providerIdentifier
95+
);
96+
return {
97+
name: p.name,
98+
id: p.id,
99+
internalId: p.internalId,
100+
disabled: p.disabled,
101+
picture: p.picture || '/no-picture.jpg',
102+
identifier: p.providerIdentifier,
103+
inBetweenSteps: p.inBetweenSteps,
104+
refreshNeeded: p.refreshNeeded,
105+
isCustomFields: !!findIntegration.customFields,
106+
...(findIntegration.customFields
107+
? { customFields: await findIntegration.customFields() }
108+
: {}),
109+
display: p.profile,
110+
type: p.type,
111+
time: JSON.parse(p.postingTimes),
112+
changeProfilePicture: !!findIntegration?.changeProfilePicture,
113+
changeNickName: !!findIntegration?.changeNickname,
114+
customer: p.customer,
115+
additionalSettings: p.additionalSettings || '[]',
116+
};
117+
})
119118
),
120119
};
121120
}

0 commit comments

Comments
 (0)