You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-37Lines changed: 2 additions & 37 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,43 +4,7 @@ AI-powered translation tool for Laravel language files
4
4
5
5
## 💡 New Feature: Custom Language Styles
6
6
7
-
We've expanded our capabilities with support for custom language styles, allowing for unique and creative translations.
8
-
9
-
### Built-in Styles
10
-
Our package already includes several built-in language styles, such as:
11
-
12
-
-`ko_kp`: North Korean style Korean
13
-
- Various regional dialects and language variants
14
-
15
-
These are automatically available and don't require additional configuration.
16
-
17
-
### Custom Style: Reddit English
18
-
As an example of custom styling, we've implemented a "Reddit style" English:
19
-
20
-
This style mimics the casual, often humorous language found on Reddit, featuring:
21
-
- Liberal use of sarcasm
22
-
- Internet slang and meme references
23
-
- Playful skepticism
24
-
25
-
Example config:
26
-
```php
27
-
'locale_names' => [
28
-
'en_reddit' => 'English (Reddit)',
29
-
],
30
-
'additional_rules' => [
31
-
'en_reddit' => [
32
-
"- Incorporate sarcasm and exaggeration",
33
-
"- Use popular internet slang and meme references",
34
-
"- Add humorous calls for sources on obvious statements",
35
-
// More Reddit-specific rules can be added
36
-
],
37
-
],
38
-
```
39
-
40
-
### Creating Your Own Custom Styles
41
-
You can create your own custom language styles by adding new entries to the `locale_names` and `additional_rules` in the configuration. This allows you to tailor translations to specific audiences or platforms.
42
-
43
-
These custom styles offer creative ways to customize your translations, adding a unique flair to your localized content. Use responsibly to enhance user engagement while maintaining clarity and appropriateness for your audience.
7
+
We've expanded our capabilities with support for custom language styles, allowing for unique and creative translations. [Learn more about Custom Language Styles](#custom-language-styles)
44
8
45
9
## Overview
46
10
@@ -78,6 +42,7 @@ Also, this tool is designed to translate your language files intelligently:
78
42
- Tone Consistency: Maintains a consistent tone across translations, customizable via configuration.
79
43
80
44
Do you want to know how this works? See the prompt in `src/AI`.
45
+
81
46
## Custom Language Styles
82
47
83
48
In addition to standard language translations, this package now supports custom language styles, allowing for unique and creative localizations.
0 commit comments