Commit 31891d4
committed
Refactor locales by integrating transliteratio
- Refactored code for better readability and modularity, adding a new ABC for locales
- Added transliteration support, including Latin transliteration, and integrated it into the library
- Migrated country and language data to the nominatim_api for improved localization
- Rewrote tests to use actual result objects instead of mocks
- Integrated YAML configuration for language normalization and updated dependency management
- Improved handling of optional dependencies and added GitHub workflows for testing them
first pass in adding transliteration, still issues with searching Dandong
Minor issue, realized also I need to add mock information about the Dandong database in order to test
mypy fixed
Testing
linting fix
Made from_accept_languages an abstract class, make display name and display name locale defined in base
Changed from global to attribute, removed mock search
updated .toml for dependenies
fixed issue with display name with locales
renaming and adding lang info file
linting issues
integrated yaml reading from config
fixed issue with test normalization
removed old locales class
tried to add localize and localize results as abstract methods, had to change signature
refactored code a bit, rewrote test to use actual result object not just mock
restructured code for readablity, added a latin transliterator, however tests are failing on github that are not failing locally
fixed mypy issues with base.py
integrated latin transliteration for cleaner code
made some comments better
reverted back to original git ignore
Dict to mapping change
Double quotes to single quotes
data country and language migration to api
added optional dependencies
add optional dependencies
better job at optional imports
lint
Added data information in init
Added more dependencies to fix import issue
Trying to fix import
Revert server glue
Added fix for linter than is not on local machine
Lint
fighting linter
added git workflow for optional dependencies
trying agfain for optional
linting again:(
optional dependencies github again
trying to fix opt dependencies 24
opt dep again
lint1 parent 196de9e commit 31891d4
File tree
18 files changed
+2029
-61
lines changed- .github/workflows
- packaging/nominatim-api
- settings
- src
- nominatim_api
- data
- localization
- nominatim_db/data
- test/python/api
18 files changed
+2029
-61
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
| 108 | + | |
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
112 | | - | |
| 112 | + | |
| 113 | + | |
113 | 114 | | |
114 | 115 | | |
115 | 116 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
26 | 33 | | |
27 | 34 | | |
28 | 35 | | |
| |||
0 commit comments