Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
1
1weather
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dmitriy Stepanets
1weather
Commits
f977bec8
Commit
f977bec8
authored
Mar 10, 2021
by
Demid Merzlyakov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix localization.
parent
c4d1d047
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
1Weather/Model/HelperTypes.swift
+1
-1
1Weather/Resources/en.lproj/Localizable.strings
+1
-1
No files found.
1Weather/Model/HelperTypes.swift
View file @
f977bec8
...
@@ -28,7 +28,7 @@ public enum WeatherType: String, CaseIterable {
...
@@ -28,7 +28,7 @@ public enum WeatherType: String, CaseIterable {
case
unknown
=
"unknown"
case
unknown
=
"unknown"
public
func
localized
(
isDay
:
Bool
)
->
String
{
public
func
localized
(
isDay
:
Bool
)
->
String
{
return
"forecast.
\(
self
.
stringId
(
isDay
:
isDay
)
.
localized
()
)
"
return
"forecast.
\(
self
.
stringId
(
isDay
:
isDay
)
)
"
.
localized
()
}
}
public
func
image
(
isDay
:
Bool
)
->
UIImage
{
public
func
image
(
isDay
:
Bool
)
->
UIImage
{
...
...
1Weather/Resources/en.lproj/Localizable.strings
View file @
f977bec8
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
"forecast.sunny" = "Sunny";
"forecast.sunny" = "Sunny";
"forecast.clear" = "Clear";
"forecast.clear" = "Clear";
"forecast.cloudy" = "Cloudy";
"forecast.cloudy" = "Cloudy";
"forecast.part
yCloud
y" = "Partly Cloudy";
"forecast.part
lyCloudyDa
y" = "Partly Cloudy";
"forecast.snowyDay" = "Snowy Day";
"forecast.snowyDay" = "Snowy Day";
"forecast.snowyNight" = "Snowy Night";
"forecast.snowyNight" = "Snowy Night";
"forecast.clearNight" = "Clear Night";
"forecast.clearNight" = "Clear Night";
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment