Jack Ye
5b6ea73513
Code cleanup & Use Flow.Launcher.Localization to improve code quality ( #4009 )
...
* Use Flow.Launcher.Localization to improve code quality
* Code cleanup
* Improve code quality
* Improve code quality
* Use internal static Context & Improve code quality
* Use Flow.Launcher.Localization to improve code quality
* Code cleanup
* Use Flow.Launcher.Localization to improve code quality
* Improve code quality
* Improve code quality
* Use Flow.Launcher.Localization to improve code quality
* Fix logic issue
* Fix the variable name typo
* Fix redundant boolean cast and ensure consistent default value handling
* Use Flow.Launcher.Localization to improve code quality
* Revert namespace styles
* Fix indent format
* Revert namespace style
* Fix indent format
* Fix namespace style
* Fix indent format
* Fix indent format
2025-09-27 19:18:33 +03:00
Jeremy
dc1f0f1095
merge back v2.0.1 from master into dev
2025-09-21 23:15:34 +10:00
Jeremy Wu
a05e09908c
Release 2.0.1 ( #3998 )
2025-09-21 20:23:00 +08:00
Jeremy Wu
d7e1ad73cc
New Crowdin updates ( #3948 )
2025-09-21 14:36:35 +03:00
Jack251970
78e5bf2a60
Use Flow.Launcher.Localization to improve code quality
2025-09-21 11:50:51 +08:00
Jack251970
e10b9254ed
Add workaround for log & ln function
2025-09-16 16:31:06 +08:00
Jack251970
6841ad5410
Add calculator unit testing
2025-09-16 16:08:17 +08:00
Jack251970
684fafdfdd
Improve code quality
2025-09-15 15:18:42 +08:00
Jack251970
f9facda521
Improve code quality
2025-09-15 13:02:42 +08:00
Jack251970
1906d68541
Add ShowErrorMessage setting
2025-09-15 12:57:25 +08:00
Jack251970
cea1402dde
Improve code quality
2025-09-15 12:53:17 +08:00
Jack251970
b07420a193
Use EmptyResults to improve code quality
2025-09-15 12:51:31 +08:00
dcog989
9be8b71f09
review feedback, CultureInvariant, mild refactor
2025-09-14 22:28:37 +01:00
dcog989
edc76faeb4
Review feedback, case insensitive, consistent separators
2025-09-14 21:51:47 +01:00
dcog989
e990e0ff5b
Handle misplaced separators, Mages edge cases
...
Allow for e.g. `25,00` when `,` used as digit grouping.
Exclude Mages function from the above relaxed logic.
2025-09-14 19:39:06 +01:00
dcog989
336e51d104
IcoPath to const string
2025-09-14 17:08:37 +01:00
Jack251970
daf35a4972
Do not check bracket complete
2025-09-14 15:54:35 +08:00
Jack251970
495ace1246
Improve plugin description
2025-09-14 12:39:11 +08:00
Jack251970
11f5ea5074
Improve code quality
2025-09-14 12:33:46 +08:00
dcog989
6462023d58
Merge branch 'dev' into calculator-min-fix
2025-09-13 13:17:40 +01:00
dcog989
110f571b40
Rework solution for nested Mages
...
Previous solution missed e.g. `pow(min(2,3), 4)`
2025-09-13 13:17:08 +01:00
dcog989
bd186e7fe1
correct + extend description
2025-09-12 20:02:34 +01:00
dcog989
190e0e179f
Fix 'German' number formatting
2025-09-12 20:01:55 +01:00
dcog989
103d3832a0
dead code, improve messages, group separator fix?
2025-09-12 19:30:07 +01:00
dcog989
e1079396c3
backout 'smart' digit grouping, mages fixes + workaround
...
Mages did not like the previous change to smart thousands / decimal so backed that out.
Workaround for https://github.com/FlorianRappl/Mages/issues/132
2025-09-12 19:20:19 +01:00
Jack251970
8e837b8e56
Avoid clobbering inherited NoWarn; append instead.
2025-09-06 13:37:27 +08:00
Jack Ye
8bc60e55e0
Merge branch 'dev' into nuget_package_upgrade
2025-09-06 13:31:24 +08:00
Jeremy Wu
4fe8d8c233
New Crowdin updates ( #3940 )
2025-09-06 06:34:23 +03:00
Jeremy Wu
ca01d15dde
New Crowdin updates ( #3824 )
...
* New translations en.xaml (German)
[ci skip]
* New translations en.xaml (French)
[ci skip]
* New translations en.xaml (Arabic)
[ci skip]
* New translations en.xaml (Czech)
[ci skip]
* New translations en.xaml (Danish)
[ci skip]
* New translations en.xaml (Hebrew)
[ci skip]
* New translations en.xaml (Italian)
[ci skip]
* New translations en.xaml (Japanese)
[ci skip]
* New translations en.xaml (Korean)
[ci skip]
* New translations en.xaml (Dutch)
[ci skip]
* New translations en.xaml (Polish)
[ci skip]
* New translations en.xaml (Portuguese)
[ci skip]
* New translations en.xaml (Russian)
[ci skip]
* New translations en.xaml (Slovak)
[ci skip]
* New translations en.xaml (Turkish)
[ci skip]
* New translations en.xaml (Ukrainian)
[ci skip]
* New translations en.xaml (Chinese Simplified)
[ci skip]
* New translations en.xaml (Chinese Traditional)
[ci skip]
* New translations en.xaml (Vietnamese)
[ci skip]
* New translations en.xaml (Portuguese, Brazilian)
[ci skip]
* New translations en.xaml (Norwegian Bokmal)
[ci skip]
* New translations en.xaml (Serbian (Latin))
[ci skip]
* New translations en.xaml (Spanish (Modern))
[ci skip]
* New translations en.xaml (Spanish, Latin America)
[ci skip]
* New translations en.xaml (French)
[ci skip]
* New translations en.xaml (Slovak)
[ci skip]
* New translations en.xaml (Chinese Simplified)
[ci skip]
* New translations en.xaml (Ukrainian)
[ci skip]
* New translations en.xaml (French)
[ci skip]
* New translations en.xaml (Chinese Simplified)
[ci skip]
* New translations en.xaml (Chinese Simplified)
[ci skip]
* New translations en.xaml (Portuguese)
[ci skip]
* New translations en.xaml (German)
[ci skip]
* New translations en.xaml (French)
[ci skip]
* New translations en.xaml (Arabic)
[ci skip]
* New translations en.xaml (Czech)
[ci skip]
* New translations en.xaml (Danish)
[ci skip]
* New translations en.xaml (Hebrew)
[ci skip]
* New translations en.xaml (Italian)
[ci skip]
* New translations en.xaml (Japanese)
[ci skip]
* New translations en.xaml (Korean)
[ci skip]
* New translations en.xaml (Dutch)
[ci skip]
* New translations en.xaml (Polish)
[ci skip]
* New translations en.xaml (Portuguese)
[ci skip]
* New translations en.xaml (Russian)
[ci skip]
* New translations en.xaml (Slovak)
[ci skip]
* New translations en.xaml (Turkish)
[ci skip]
* New translations en.xaml (Ukrainian)
[ci skip]
* New translations en.xaml (Chinese Simplified)
[ci skip]
* New translations en.xaml (Chinese Traditional)
[ci skip]
* New translations en.xaml (Vietnamese)
[ci skip]
* New translations en.xaml (Portuguese, Brazilian)
[ci skip]
* New translations en.xaml (Norwegian Bokmal)
[ci skip]
* New translations en.xaml (Serbian (Latin))
[ci skip]
* New translations en.xaml (Spanish (Modern))
[ci skip]
* New translations en.xaml (Spanish, Latin America)
[ci skip]
* New translations en.xaml (Slovak)
[ci skip]
* New translations en.xaml (French)
[ci skip]
2025-08-31 13:05:43 +03:00
Jack251970
b07763ad05
Suppress FLSG0007
2025-08-19 14:27:45 +08:00
Jack251970
922c3d5611
Upgrade nuget packages & Update lock files
2025-08-17 16:54:41 +08:00
Jack Ye
80c0920f10
Merge branch 'dev' into fix-typo
2025-07-28 02:56:32 +01:00
Jack251970
afc969d00f
Update translations in language file
2025-07-27 20:03:33 +08:00
VictoriousRaptor
53255c3a9c
Fix typo
2025-07-27 18:41:23 +08:00
VictoriousRaptor
443d4f7c02
Build regex at compile time
2025-07-27 18:39:38 +08:00
VictoriousRaptor
71e0374640
Merge dev
2025-07-27 14:45:08 +08:00
VictoriousRaptor
b637e0a028
Use Flow.Launcher.Localization 0.0.4 & update expect list
2025-07-27 00:17:09 +08:00
Jack251970
14282b6734
Fix typos
2025-07-24 19:16:58 +08:00
dcog989
f8a6b02c80
fix for GitHub build server failure
...
Removes external dependency for NumberGroupSeparator so it builds anywhere.
2025-07-24 02:33:59 +01:00
dcog989
9bcb1b2939
Merge branch 'Calculator-accepts-flexible-separator' of https://github.com/dcog989/Flow.Launcher into Calculator-accepts-flexible-separator
2025-07-23 17:57:12 +01:00
dcog989
76f834ff1b
PR review changes
2025-07-23 17:56:58 +01:00
dcog989
4d22e6c352
Delete Plugins/Flow.Launcher.Plugin.Calculator/Views/CalculatorSettings.xaml.cs
2025-07-23 17:26:18 +01:00
VictoriousRaptor
0b6309f175
Fix typo
2025-07-23 19:39:17 +08:00
dcog989
161c5462ba
Merge branch 'Calculator-accepts-flexible-separator' of https://github.com/dcog989/Flow.Launcher into Calculator-accepts-flexible-separator
2025-07-23 04:27:33 +01:00
dcog989
852b2f517b
fix for regression from first review, plus issues with e.g. '0,123' and ',123'
2025-07-23 04:27:19 +01:00
Jack Ye
5ff8a5b1d5
Use compiled regex
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-07-23 09:59:09 +08:00
Jack251970
5161bbe660
Remove unused comments & blank line
2025-07-23 09:33:14 +08:00
dcog989
c83a29fb18
PR review changes
2025-07-23 01:18:26 +01:00
dcog989
113baac567
Smart thousands and decimals
...
## Core Logic
* **Advanced Number Parsing:** We now process numbers with various decimal and thousand-separator formats (e.g., `1,234.56` and `1.234,56`). We distinguish between separator types based on their position and surrounding digits.
* **Context-Aware Output Formatting:** We now mirror the output format based on the user's input. If a query includes thousand separators, the result will also have them. The decimal separator in the result will match the one used in the query.
## Code Cleanup
* **Deleted Unused File:** `NumberTranslator.cs` was unused and therefore removed.
* **Removed Redundant UI Code:** The `CalculatorSettings_Loaded` event handler in `CalculatorSettings.xaml.cs` (and its XAML registration) was removed. The functionality was already handled automatically by data binding.
## Maintainability
* **Added Code Documentation:** An XML summary comment was added to the new `NormalizeNumber` method in `Main.cs` to clarify its purpose.
So, the plugin is now much more flexible, and will accept whatever format the user gives it regardless of Windows region settings.
2025-07-22 23:48:11 +01:00
VictoriousRaptor
282581940a
Use new Localization package
2025-07-23 00:04:52 +08:00