Skip to content

Commit e861e40

Browse files
Fix typos and add typos-cli spellchecker (#623)
1 parent 2115267 commit e861e40

File tree

34 files changed

+196
-50
lines changed

34 files changed

+196
-50
lines changed

.github/workflows/lint.yml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
permissions:
2+
contents: read
3+
4+
on: [pull_request]
5+
6+
env:
7+
CLICOLOR: 1
8+
9+
jobs:
10+
spelling:
11+
name: Spell Check with Typos
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout Actions Repository
15+
uses: actions/checkout@v4
16+
- name: Spell Check Repo
17+
uses: crate-ci/[email protected]

.vscode/extensions.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
{
2-
"recommendations": ["esbenp.prettier-vscode", "unifiedjs.vscode-mdx"]
2+
"recommendations": [
3+
"esbenp.prettier-vscode",
4+
"unifiedjs.vscode-mdx",
5+
"tekumara.typos-vscode"
6+
]
37
}

.vscode/settings.json

+6
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,11 @@
33
"editor.defaultFormatter": "esbenp.prettier-vscode",
44
"editor.codeActionsOnSave": {
55
"source.fixAll.eslint": "explicit"
6+
},
7+
"yaml.schemas": {
8+
"https://raw.githubusercontent.com/evilmartians/lefthook/refs/heads/master/schema.json": [
9+
"lefthook.yml",
10+
"lefthook-local.yml"
11+
]
612
}
713
}

README.md

+17-5
Original file line numberDiff line numberDiff line change
@@ -96,21 +96,33 @@ The default sidebar is rendered at the bottom of `sidebars.js`.
9696

9797
### Installation
9898

99-
```
100-
$ yarn
101-
```
99+
- Install dependencies
100+
101+
```sh
102+
$ yarn install
103+
```
104+
105+
- Optionally install [typos-cli](https://github.com/crate-ci/typos)
106+
107+
```sh
108+
brew install typos-cli
109+
```
110+
111+
See the link for other options.
112+
113+
This is optional, but will enable running it via the pre-commit hook. You can also use the recommended [vscode extension](https://marketplace.visualstudio.com/items?itemName=tekumara.typos-vscode) or let it run via GitHub Actions when you create a PR.
102114

103115
### Local Development
104116

105-
```
117+
```sh
106118
$ yarn start
107119
```
108120

109121
This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
110122

111123
### Build
112124

113-
```
125+
```sh
114126
$ yarn build
115127
```
116128

_typos.toml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# https://github.com/crate-ci/typos
2+
3+
[default]
4+
extend-ignore-re = [
5+
"!\\[.*\\](.*)",
6+
"<YouTubeEmbed.*/>"
7+
]
8+
extend-ignore-identifiers-re = [
9+
]
10+
11+
[default.extend-identifiers]
12+
13+
[default.extend-words]
14+
15+
[files]
16+
extend-exclude = [
17+
"static/images/*",
18+
"openapi-spec/*",
19+
"code_blocks/tools/customer-center-localization.json"
20+
]

code_blocks/_projects/iOS/DocsTester/Sources/DocsTester/DocsTester.swift

+5-5
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ final class Container {
6666

6767
}
6868

69-
func supressWarning(_ any: Any?) {
69+
func suppressWarning(_ any: Any?) {
7070

7171
}
7272

@@ -79,9 +79,9 @@ final class Container {
7979
let packageById = offerings.offering(identifier: "experiment_group")?.package(identifier: "<package_id>")
8080
// END
8181

82-
// supress warnings
83-
supressWarning(packages)
84-
supressWarning(monthlyPackage)
85-
supressWarning(packageById)
82+
// suppress warnings
83+
suppressWarning(packages)
84+
suppressWarning(monthlyPackage)
85+
suppressWarning(packageById)
8686
}
8787
}

docs/dashboard-and-metrics/charts/cohort-explorer.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,13 @@ For each period, we:
7272
For each period, we:
7373

7474
1. Count the New Paying Customers that made their first payment in that period
75-
2. Provide the cummulative sum of revenue generated by that cohort as of each subsequent period
75+
2. Provide the cumulative sum of revenue generated by that cohort as of each subsequent period
7676

7777
**Realized LTV / Customer of Paying Customer Cohorts**\
7878
For each period, we:
7979

8080
1. Count the Paying Customers that made their first payment in that period
81-
2. Provide the cummulative sum of revenue generated by that cohort as of each subsequent period, divided by the count of Paying Customers in that cohort
81+
2. Provide the cumulative sum of revenue generated by that cohort as of each subsequent period, divided by the count of Paying Customers in that cohort
8282

8383
**Retained Subscriptions of Initial Conversion Cohorts**\
8484
For each period, we:

docs/dashboard-and-metrics/charts/prediction-explorer.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -161,15 +161,15 @@ For each period, we:
161161
For each period, we:
162162

163163
1. Count the New Paying Customers that made their first payment in that period
164-
2. Provide the cummulative sum of revenue generated by that cohort as of each subsequent period
165-
3. Add the cummulative sum of revenue we predict will be added from existing paid subscriptions in future periods that are not yet complete (up to 24 months)
164+
2. Provide the cumulative sum of revenue generated by that cohort as of each subsequent period
165+
3. Add the cumulative sum of revenue we predict will be added from existing paid subscriptions in future periods that are not yet complete (up to 24 months)
166166

167167
**Realized LTV / Customer of New Paying Customer Cohorts**\
168168
For each period, we:
169169

170170
1. Count the New Paying Customers that made their first payment in that period
171-
2. Provide the cummulative sum of revenue generated by that cohort as of each subsequent period, divided by the count of New Paying Customers in that cohort
172-
3. Add the cummulative sum of all revenue we predict will be added from existing paid subscriptions in future periods that are not yet complete (up to 24 months), divided by the count of New Paying Customers in that cohort
171+
2. Provide the cumulative sum of revenue generated by that cohort as of each subsequent period, divided by the count of New Paying Customers in that cohort
172+
3. Add the cumulative sum of all revenue we predict will be added from existing paid subscriptions in future periods that are not yet complete (up to 24 months), divided by the count of New Paying Customers in that cohort
173173

174174
## FAQs
175175

docs/dashboard-and-metrics/display-currency.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ When processing a purchase, we always convert its price to USD based on the exch
4949
## Supported features
5050

5151
1. **Overview**: The Overview page will display Revenue and MRR in your set display currency.
52-
2. **Charts**: Almost all charts support dispaly currencies, including the Revenue chart, MRR chart, and the Realized LTV charts.
52+
2. **Charts**: Almost all charts support display currencies, including the Revenue chart, MRR chart, and the Realized LTV charts.
5353
3. **Customer Lists**: Your set display currency will be used when calculating the revenue generated by a given list of customers. In addition, when exporting a list of customers, the `total_spent` column will be provided in your display currency, which you can reference through the `currency` field in the export.
5454
4. **Customer Profile**: Revenue generating events in a customer's history will use your set display currency.
5555

docs/dashboard-and-metrics/reconciling-with-financial-reports.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Apple’s monthly [financial reports](https://developer.apple.com/help/app-store
3636

3737
A transaction's settlement date is the date when the customer's payment is actually made to Apple. Often this will occur on the same day that a transaction is initiated by the customer; but may also occur on a later date, such as when Apple batches some payments together and charges them at once at a later time, or when a customer is due to renew their subscription on a given date but the attempted payment fails until some later date in their grace period.
3838

39-
The result is that the day a transaction is initiated and the day it settles is not always the same, and therefore a transaction may be paid out in a later fiscal month than the one it was initiatied in.
39+
The result is that the day a transaction is initiated and the day it settles is not always the same, and therefore a transaction may be paid out in a later fiscal month than the one it was initiated in.
4040

4141
### Price fields
4242

@@ -98,6 +98,6 @@ When using these data sources to operate your business, we recommend that you:
9898

9999
- Use RevenueCat for trend analysis, real-time insights, and estimating future earnings.
100100
- Rely on Apple’s financial reports for accurate payout data, financial reporting, and all accounting use cases.
101-
- And always keep in mind these nuances of settlment dates, Apple's fiscal calendar, exchange rates, tax & commission estimations, and refund attribution when attempting to reconcile the two data sources.
101+
- And always keep in mind these nuances of settlement dates, Apple's fiscal calendar, exchange rates, tax & commission estimations, and refund attribution when attempting to reconcile the two data sources.
102102

103103
By understanding the methodologies behind these tools, you can better utilize their strengths and make informed decisions when operating your business.

docs/getting-started/entitlements/roku-products.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ At the moment, RevenueCat does not support One-time Purchase and One-time Purcha
5656
- One to three-digit tier numbers are used for 99 cent pricing. To calculate, you can subtract 1 cent from the tier to get the corresponding price. For example, Tier 100 is $99.99 (`$100 - $0.01 = $99.99`).
5757
- Four-digit tier numbers are used for 49 cent pricing. To calculate this, you can add 49 cents to the last two digits in the tier. For example, Tier 1030 is $30.49 (30 is the last 2 digits &#8594; `$30 + $0.49 = $30.49`).
5858

59-
Once you select a price tier, a chart will appear that displays the purchase price, net price, and proceeeds for each country the product is available for.
59+
Once you select a price tier, a chart will appear that displays the purchase price, net price, and proceeds for each country the product is available for.
6060
- **Purchase price**: Reflects the amount your customer will pay.
6161
- **Net price**: This is the pre-tax price.
6262
- **Your proceeds**: This is the amount you will receive from Roku for the sale of the product.
@@ -119,7 +119,7 @@ Note that deleting a product without first changing its **Cleared for Sale** sta
119119
## Product groups
120120
Product groups are used for upgrade/downgrade functionality and to prevent double billing your customers. For more information regarding upgrades/downgrades, please visit our documentation on [_Upgrades, Downgrades, & Management_](/subscription-guidance/managing-subscriptions#roku).
121121

122-
To set up a product group, nagivate to your _'Manage In-Channel Products' > 'All product groups' > 'Add a new group'_
122+
To set up a product group, navigate to your _'Manage In-Channel Products' > 'All product groups' > 'Add a new group'_
123123

124124
![](/images/roku/roku-product-group.png)
125125

docs/getting-started/installation/roku.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ import rokuSyncPurchases from "!!raw-loader!@site/code_blocks/getting-started/in
169169
]} />
170170

171171
### Error
172-
The error model constains two fields: `code` and `message`
172+
The error model contains two fields: `code` and `message`
173173

174174
import rokuError from "!!raw-loader!@site/code_blocks/getting-started/installation/roku-error.txt";
175175

docs/getting-started/quickstart.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ import kotlinContent46 from "!!raw-loader!@site/code_blocks/getting-started/gett
205205
import javaContent47 from "!!raw-loader!@site/code_blocks/getting-started/getting-started_47.java";
206206
import flutterContent48 from "!!raw-loader!@site/code_blocks/getting-started/getting-started_48.js";
207207
import reactNativeContent49 from "!!raw-loader!@site/code_blocks/getting-started/getting-started_49.js";
208-
import capacitorContent50 from "!!raw-loader!@site/code_blocks/getting-started/getting-started-capacitor-react-subcription-changes.ts";
208+
import capacitorContent50 from "!!raw-loader!@site/code_blocks/getting-started/getting-started-capacitor-react-subscription-changes.ts";
209209
import cordovaContent51 from "!!raw-loader!@site/code_blocks/getting-started/getting-started_50.js";
210210
import unityContent52 from "!!raw-loader!@site/code_blocks/getting-started/getting-started_51.cs";
211211
import kmpContent6 from "!!raw-loader!@site/code_blocks/customers/customer-info_kmp_1.kts";

docs/getting-started/restoring-purchases.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ When a user restores purchases that are already attached to another user, Revenu
5454

5555
## Restoring Purchases for Consumables and Non-renewing Subscriptions
5656

57-
Consumables and non-renewing subscriptions can only be restored by using an acount system with custom [App User IDs](/customers/user-ids). This is due to these types of in-app purchases not showing up on the underlying store receipt after the transaction is finished.
57+
Consumables and non-renewing subscriptions can only be restored by using an account system with custom [App User IDs](/customers/user-ids). This is due to these types of in-app purchases not showing up on the underlying store receipt after the transaction is finished.
5858

5959
By logging in your users with a custom App User ID, RevenueCat can continue to provide transaction details in a user's [CustomerInfo](/customers/customer-info) for their previous consumable and non-renewing subscription purchases.
6060

docs/guides/testing-guide/use-cases.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -789,7 +789,7 @@ Purchases.shared.logIn("<another_app_user_id>") { (customerInfo, created, error)
789789
2. Navigate to your paywall screen.
790790
3. Ensure that your intro offer is being shown on your paywall as well as the discount between different packages.
791791
4. Purchase a package that has an intro offer attached.
792-
5. Check the RevenueCat dashboard customer history for that app user ID and ensure that an `INITAL_PURCHASE` event was made with the Intro offer attached to it. This event should look like the intro offers discussed above in the test guide.
792+
5. Check the RevenueCat dashboard customer history for that app user ID and ensure that an `INITIAL_PURCHASE` event was made with the Intro offer attached to it. This event should look like the intro offers discussed above in the test guide.
793793

794794
**Expected Results:** User is shown the paywall with their intro offer attached and the user is able to make the purchase with the intro offer attached.
795795

docs/integrations/attribution/kochava.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ After you've set up the _Purchases SDK_ to send attribution data from Kochava to
8787
2. Choose **Kochava** from the Integrations menu.
8888
3. Add your API key, which can be generated in Kochava. For more information on how to access your API key, see the following [documentation](https://support.kochava.com/analytics-reports-api/create-and-manage-application-programming-interface-key/).
8989
4. If strict authentication rules are enabled in the integration, you can add a Secret API Key. Kochava does not enable this by default. There is currently no place in the UI to access your API Secret, so you need to request it from the Kochava support team.
90-
5. At least one App GUID or Test App GUID must be added. This is called `APP GUID` in the Kochava backend. If you perform [Sanbox Testing](https://www.revenuecat.com/docs/test-and-launch/sandbox), we automatically send events to the corresponding Test App GUID. For example, if you are testing on Android, we will automatically send events linked to the Android Test App GUID.
90+
5. At least one App GUID or Test App GUID must be added. This is called `APP GUID` in the Kochava backend. If you perform [Sandbox Testing](https://www.revenuecat.com/docs/test-and-launch/sandbox), we automatically send events to the corresponding Test App GUID. For example, if you are testing on Android, we will automatically send events linked to the Android Test App GUID.
9191
6. Enter the event names that RevenueCat will send. The default names are our best attempt at mapping to Kochava event names. **NOTE:** You may lose some functionality if you do not use the default names. See this [Full List of Standard Events](https://support.kochava.com/reference-information/post-install-event-examples/) that Kochava supports.
9292
7. Select whether you want sales reported as gross revenue (before app store commission) or after store commission and/or estimated taxes.
9393

docs/integrations/third-party-integrations/firebase-integration.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ Follow [this installation link](https://console.firebase.google.com/project/_/ex
210210
| :--------------------- | :------------------------------------------------------------------------------------------------------------------------- |
211211
| `test` | Occurs whenever a test event issued through the RevenueCat dashboard. |
212212
| `initial_purchase` | Occurs whenever a new subscription has been purchased or a lapsed user has resubscribed. |
213-
| `non_renewing_puchase` | Occurs whenever a customer has made a purchase that will not auto-renew. |
213+
| `non_renewing_purchase` | Occurs whenever a customer has made a purchase that will not auto-renew. |
214214
| `renewal ` | Occurs whenever an existing subscription has been renewed. |
215215
| `product_change` | Occurs whenever a subscriber has changed the product of their subscription. |
216216
| `cancellation` | Occurs whenever a subscription or non-renewing purchase has been cancelled. See cancellation reasons for more details. |

docs/platform-resources/apple-platform-resources/handling-refund-requests.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Choose the option that best fits the majority of your use cases.
3232
If, for example, you chose "Always prefer declining refunds", but have a specific customer or certain conditions under which you'd prefer Apple to grant a refund, you can override this preference before your customer submits their refund request directly to Apple.
3333

3434
To do so, you can use RevenueCat's [customer attributes](/customers/customer-attributes) to set a specific preference for any customer. RevenueCat provides a reserved customer attribute field, `$appleRefundHandlingPreference`, where you can set values such as:
35-
- `DO_NOT_HANLDE`: Refund requests will not be handled for this customer. You can use this option to disable the feature for customers that have not provided consent.
35+
- `DO_NOT_HANDLE`: Refund requests will not be handled for this customer. You can use this option to disable the feature for customers that have not provided consent.
3636
- `GRANT_REFUND`: You prefer that Apple grants the refund for this customer.
3737
- `DECLINE_REFUND`: You prefer that Apple declines the refund for this customer.
3838
- `LET_APPLE_DECIDE`: You have no preference regarding Apple's decision to grant or decline the refund for this customer.

docs/projects/collaborators.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ Add the SSO Group name, select the role you want to grant.
8585

8686
Once you save these mappings the collaborators will automatically be synchronized. This may take up to a few minutes.
8787

88-
If multiple RevenueCat roles are assigned to the same SSO group, RevenueCat will provide the group with the _highest_ level of access defined by the following heirarchy.
88+
If multiple RevenueCat roles are assigned to the same SSO group, RevenueCat will provide the group with the _highest_ level of access defined by the following hierarchy.
8989

9090
1. Admin
9191
1. Developer

docs/subscription-guidance/how-grace-periods-work.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ As mentioned, billing issues occur when a user is unable to complete a subscript
2222

2323
RevenueCat will only send **one** billing issue event -- additional payment failures won't trigger additional billing issue events, unless a renewal is successful between payment failures or the subscription ends and is restarted.
2424

25-
In rare cases, if the billing issue occurs immediately during the inital purchase of a product, it may not be detected by RevenueCat and included in the user's purchase history, even though the store indicates that a billing issue occured on their end. This is because the purchase token was never created by the store, and thus, could not be sent to RevenueCat to be tracked.
25+
In rare cases, if the billing issue occurs immediately during the initial purchase of a product, it may not be detected by RevenueCat and included in the user's purchase history, even though the store indicates that a billing issue occurred on their end. This is because the purchase token was never created by the store, and thus, could not be sent to RevenueCat to be tracked.
2626

2727
### SDK Prompt
2828

docs/subscription-guidance/refunds.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ Apple doesn’t allow developers to grant refunds themselves, only through Apple
6565

6666
### Apple
6767

68-
If you are seeing delays or non-existent non-subcription refunds, make sure that [Platform Server Notifications](/platform-resources/server-notifications) are enabled.
68+
If you are seeing delays or non-existent non-subscription refunds, make sure that [Platform Server Notifications](/platform-resources/server-notifications) are enabled.
6969

7070
If you are are seeing delays or non-existent consumable refunds, make sure that the [In-App Purchase Key](/service-credentials/itunesconnect-app-specific-shared-secret/in-app-purchase-key-configuration) is configured.
7171

0 commit comments

Comments
 (0)