Skip to content

Commit 2cfb6bb

Browse files
committed
Use AppLocalizedString in widget and update automation accordingly
1 parent 6b0a9b2 commit 2cfb6bb

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

WooCommerce/StoreWidgets/StoreInfoWidget.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -123,22 +123,22 @@ private struct NotLoggedInView: View {
123123
///
124124
private extension StoreInfoView {
125125
enum Localization {
126-
static let revenue = NSLocalizedString(
126+
static let revenue = AppLocalizedString(
127127
"storeWidgets.infoView.revenue",
128128
value: "Revenue",
129129
comment: "Revenue title label for the store info widget"
130130
)
131-
static let visitors = NSLocalizedString(
131+
static let visitors = AppLocalizedString(
132132
"storeWidgets.infoView.visitors",
133133
value: "Visitors",
134134
comment: "Visitors title label for the store info widget"
135135
)
136-
static let orders = NSLocalizedString(
136+
static let orders = AppLocalizedString(
137137
"storeWidgets.infoView.orders",
138138
value: "Orders",
139139
comment: "Orders title label for the store info widget"
140140
)
141-
static let conversion = NSLocalizedString(
141+
static let conversion = AppLocalizedString(
142142
"storeWidgets.infoView.orders",
143143
value: "Conversion",
144144
comment: "Conversion title label for the store info widget"
@@ -155,12 +155,12 @@ private extension StoreInfoView {
155155
///
156156
private extension NotLoggedInView {
157157
enum Localization {
158-
static let notLoggedIn = NSLocalizedString(
158+
static let notLoggedIn = AppLocalizedString(
159159
"storeWidgets.notLoggedInView.notLoggedIn",
160160
value: "Log in to see today’s stats.",
161161
comment: "Title label when the widget does not have a logged-in store."
162162
)
163-
static let login = NSLocalizedString(
163+
static let login = AppLocalizedString(
164164
"storeWidgets.notLoggedInView.login",
165165
value: "Log in",
166166
comment: "Title label for the login button on the store info widget."

fastlane/Fastfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -980,8 +980,10 @@ platform :ios do
980980
],
981981
exclude: [
982982
'*Vendor*',
983+
'**/AppLocalizedString.swift',
983984
'WooCommerce/WooCommerceTests/**' # Some unit tests include localized strings, but we don't want to crowd GlotPress with them
984985
],
986+
routines: ['AppLocalizedString'],
985987
output_dir: en_lproj_path
986988
)
987989

0 commit comments

Comments
 (0)