()
| 49 | } |
| 50 | |
| 51 | func (i *App) GetAppResourcePath() string { |
| 52 | if i.IsLocalApp() { |
| 53 | return filepath.Join(global.Dir.LocalAppResourceDir, strings.TrimPrefix(i.Key, "local")) |
| 54 | } |
| 55 | if i.IsCustomApp() { |
| 56 | return filepath.Join(global.Dir.CustomAppResourceDir, i.Key) |
| 57 | } |
| 58 | return filepath.Join(global.Dir.RemoteAppResourceDir, i.Key) |
| 59 | } |
| 60 | |
| 61 | func getLang(c *gin.Context) string { |
| 62 | lang := c.GetHeader("Accept-Language") |
no test coverage detected