Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create bug-free i18n API #473

Draft
wants to merge 58 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 56 commits
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
bbf3dc5
check thing returned by optionalTravelDownObjectPath is string
meadowsys Apr 5, 2023
12ec511
minimal working implementation(???)
meadowsys Mar 27, 2023
902f0d6
fix some silly bugs
meadowsys Mar 27, 2023
cc204b9
autogenerate schema based on translation files available (in core dir)
meadowsys Mar 27, 2023
946af1d
include i18n dir in the built app
meadowsys Mar 27, 2023
1178a01
add an en file so the setting shows up properly at least
meadowsys Mar 27, 2023
c934b9a
few tiny changes
meadowsys Mar 27, 2023
f62067b
filter out non `.json` files from the i18n dir
meadowsys Mar 27, 2023
6123225
implement package strings fetching
meadowsys Mar 27, 2023
2996f01
OwO it begins
meadowsys Mar 27, 2023
470f73a
remove unused code
meadowsys Mar 27, 2023
20b42bf
remove unncessary seperate core strings property
meadowsys Mar 27, 2023
d0f2080
oops
meadowsys Mar 27, 2023
8ddf4f4
this doesn't need to be an array
meadowsys Mar 27, 2023
db3219a
add crowdin.yml file?
meadowsys Mar 29, 2023
10c041d
change crowdin PR message to skip the ci
meadowsys Mar 29, 2023
a74e505
add a key fallback
meadowsys Mar 29, 2023
3b0e453
added ability to localise menus
meadowsys Mar 29, 2023
fc82838
fix version replacer, use this.i18n.t later,
meadowsys Mar 29, 2023
f2b21ab
localise menu item labels before checking item ID
meadowsys Mar 29, 2023
2a7aa64
extracted strings out of darwin menu
meadowsys Mar 30, 2023
213da17
format,
meadowsys Mar 31, 2023
c3c1982
oops
meadowsys Mar 31, 2023
5b8247f
implement cache (inmemory for now)
meadowsys Mar 31, 2023
adc61d0
h
meadowsys Mar 31, 2023
eb73afb
implement (inmemory) cache cleaning
meadowsys Mar 31, 2023
9a7bb7a
implement saving and loading caches
meadowsys Mar 31, 2023
b5b9b81
implement debounced save
meadowsys Mar 31, 2023
1c59f88
lol remove debug logging statement
meadowsys Mar 31, 2023
a755d2b
remove this todo
meadowsys Mar 31, 2023
e1de5a9
implement onDidDeactivatePackage
meadowsys Mar 31, 2023
0b25271
move this down here (because i think it makes more sense)
meadowsys Mar 31, 2023
e070911
no this is done lol
meadowsys Mar 31, 2023
401089b
cache message formatters
meadowsys Apr 1, 2023
455836e
this can be moved out
meadowsys Apr 1, 2023
6cb89d4
fix config schema
meadowsys Apr 1, 2023
8d0bd69
translate linux menus, fix silly bug on macos lol
meadowsys Apr 1, 2023
73b7534
provide (namespaced) t through package activate()
meadowsys Apr 2, 2023
0e244b3
do some cleanup
meadowsys Apr 2, 2023
a4344ef
fix codacy warning
meadowsys Apr 2, 2023
a2d9c65
fix accidental wrong indent in cson
meadowsys Apr 2, 2023
d9a7914
oops
meadowsys Apr 3, 2023
a3f8f29
Implement some suggestions
meadowsys Apr 3, 2023
e7a71f4
preload "en", and preload for core too
meadowsys Apr 4, 2023
f46fb1f
yeet earlier `this.keymaps.loadBundledKeymaps` call
meadowsys Apr 6, 2023
d88f338
Merge branch 'master' into i18n
meadowsys May 10, 2023
e509a40
Merge branch 'i18n-small-fix' into i18n
meadowsys May 10, 2023
a853ed2
the menu items are back but in the wrong order lol
meadowsys May 30, 2023
09a8f89
hopefully fix menu item ordering issue???
meadowsys Jun 1, 2023
db19fab
merge master into i18n
meadowsys Jun 1, 2023
3803257
*MAYBE* THERE IS A FIX?????
meadowsys Jul 3, 2023
22c7128
merge branch master into i18n
meadowsys Jul 3, 2023
c104be3
fix grammar-selector tests hopefully
meadowsys Jul 6, 2023
9e0b6da
merge branch master into i18n
meadowsys Jul 6, 2023
fb5c86f
revert 3803257b97f4fc114b440e4c223fe779297bb375, 09a8f89ae17a9f800b98…
meadowsys Jul 8, 2023
54b2630
Merge branch 'master' into i18n
meadowsys Aug 24, 2023
485624b
try reordering initialisation
meadowsys Aug 26, 2023
6526d7b
Merge branch master into i18n
meadowsys Sep 8, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions crowdin.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
preserve_hierarchy: true
commit_message: "[skip ci] Translations from Crowdin"
append_commit_message: false

files:
- source: /i18n/en.json
translation: /i18n/%locale%.json
- source: /packages/**/i18n/en.json
translation: /packages/**/i18n/%locale%.json
169 changes: 169 additions & 0 deletions i18n/en.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,169 @@
{
"menu": {
"pulsar": {
"about": "About Pulsar",
"view-license": "View License",
"version": "Version VERSION",
"restart-and-install-update": "Restart and Install Update",
"check-for-update": "Check for Update",
"checking-for-update": "Checking for Update",
"downloading-update": "Downloading Update",
"preferences": "Preferences",
"config": "Config",
"init-script": "Init Script",
"keymap": "Keymap",
"snippets": "Snippets",
"stylesheet": "Stylesheet",
"install-shell-commands": "Install Shell Commands",
"quit": "Quit Pulsar"
},
"macos": {
"services": "Services",
"hide-self": "Hide Pulsar",
"hide-others": "Hide Others",
"show-all": "Show All"
},
"file": {
"self": "File",
"new-window": "New Window",
"new-file": "New File",
"open": "Open...",
"open-file": "Open File...",
"open-folder": "Open Folder...",
"add-project-folder": "Add Project Folder",
"project-history": {
"reopen-project": "Reopen Project",
"clear": "Clear Project History"
},
"reopen-last-item": "Reopen Last Item",
"save": "Save",
"save-as": "Save As...",
"save-all": "Save All",
"close-tab": "Close Tab",
"close-pane": "Close Pane",
"close-window": "Close Window"
},
"edit": {
"self": "Edit",
"undo": "Undo",
"redo": "Redo",
"cut": "Cut",
"copy": "Copy",
"copy-path": "Copy Path",
"paste": "Paste",
"paste-without-reformatting": "Paste Without Reformatting",
"select-all": "Select All",
"toggle-comments": "Toggle Comments",
"lines": {
"self": "Lines",
"indent": "Indent",
"outdent": "Outdent",
"auto-indent": "Auto Indent",
"move-up": "Move Line Up",
"move-down": "Move Line Down",
"duplicate": "Duplicate Lines",
"delete": "Delete Line",
"join": "Join Lines"
},
"columns": {
"self": "Columns",
"move-selection-left": "Move Selection Left",
"move-selection-right": "Move Selection Right"
},
"text": {
"self": "Text",
"upper-case": "Upper Case",
"lower-case": "Lower Case",
"delete-to-end-of-word": "Delete to End of Word",
"delete-to-previous-word-boundary": "Delete to Previous Word Boundary",
"delete-to-next-word-boundary": "Delete to Next Word Boundary",
"delete-line": "Delete Line",
"transpose": "Transpose"
},
"folding": {
"self": "Folding",
"fold": "Fold",
"unfold": "Unfold",
"fold-all": "Fold All",
"unfold-all": "Unfold All",
"fold-level-1": "Fold Level 1",
"fold-level-2": "Fold Level 2",
"fold-level-3": "Fold Level 3",
"fold-level-4": "Fold Level 4",
"fold-level-5": "Fold Level 5",
"fold-level-6": "Fold Level 6",
"fold-level-7": "Fold Level 7",
"fold-level-8": "Fold Level 8",
"fold-level-9": "Fold Level 9"
}
},
"view": {
"self": "View",
"toggle-full-screen": "Toggle Full Screen",
"toggle-menu-bar": "Toggle Menu Bar",
"panes": {
"self": "Panes",
"split-up": "Split Up",
"split-down": "Split Down",
"split-left": "Split Left",
"split-right": "Split Right",
"focus-next": "Focus Next Pane",
"focus-previous": "Focus Previous Pane",
"focus-above": "Focus Pane Above",
"focus-below": "Focus Pane Below",
"focus-on-left": "Focus Pane On Left",
"focus-on-right": "Focus Pane On Right",
"close": "Close Pane"
},
"developer": {
"self": "Developer",
"open-in-dev-mode": "Open In Dev Mode",
"reload-window": "Reload Window",
"run-package-specs": "Run Package Specs",
"toggle-dev-tools": "Toggle Developer Tools"
},
"increase-font-size": "Increase Font Size",
"decrease-font-size": "Decrease Font Size",
"reset-font-size": "Reset Font Size",
"toggle-soft-wrap": "Toggle Soft Wrap"
},
"selection": {
"self": "Selection",
"add-above": "Add Selection Above",
"add-below": "Add Selection Below",
"single": "Single Selection",
"split-into-lines": "Split into Lines",
"to-top": "Select to Top",
"to-bottom": "Select to Bottom",
"line": "Select Line",
"word": "Select Word",
"to-beginning-of-word": "Select to Beginning of Word",
"to-beginning-of-line": "Select to Beginning of Line",
"to-first-char-of-line": "Select to First Character of Line",
"to-end-of-word": "Select to End of Word",
"to-end-of-line": "Select to End of Line"
},
"find": {
"self": "Find"
},
"packages": {
"self": "Packages",
"open-package-manager": "Open Package Manager"
},
"window": {
"self": "Window",
"minimise": "Minimise",
"zoom": "Zoom",
"bring-all-to-front": "Bring All to Front"
},
"help": {
"self": "Help",
"terms-of-use": "Terms of Use",
"docs": "Documentation",
"faq": "Frequently Asked Questions",
"community-discussions": "Community Discussions",
"report-issue": "Report Issue",
"search-issues": "Search Issues"
}
}
}
Loading
Loading