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

backend: support i18n in IP parsing result #774

Open
hsluoyz opened this issue Mar 16, 2024 · 0 comments
Open

backend: support i18n in IP parsing result #774

hsluoyz opened this issue Mar 16, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@hsluoyz
Copy link
Contributor

hsluoyz commented Mar 16, 2024

See: https://demo-admin.casibase.com/chats

The following texts need to be i18n-fixed.

image

The code is as follows:

casibase/util/ip.go

Lines 34 to 46 in aafbcde

func GetDescFromIP(ip string) string {
info, err := Find(ip)
if err != nil {
return ""
}
res := info.Country + ", " + info.Region + ", " + info.City
if info.Isp != Null {
res += ", " + info.Isp
}
return res
}

@hsluoyz hsluoyz self-assigned this Mar 16, 2024
@hsluoyz hsluoyz added the enhancement New feature or request label Mar 16, 2024
@hsluoyz hsluoyz changed the title feature: support i18n in IP parsing result backend: support i18n in IP parsing result Mar 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant