From 989ff5a464ad306581133eff8a015b14df2a384f Mon Sep 17 00:00:00 2001 From: Tana M Berry Date: Thu, 20 Jul 2023 15:07:15 -0500 Subject: [PATCH] website/blog: fixed grammatical error in blog (#6318) Update item.md corrected grammar issue Signed-off-by: Tana M Berry --- .../2023-07-20-multi-user-locale-management-using-lit/item.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/blog/2023-07-20-multi-user-locale-management-using-lit/item.md b/website/blog/2023-07-20-multi-user-locale-management-using-lit/item.md index ed78e6e63..11e71f831 100644 --- a/website/blog/2023-07-20-multi-user-locale-management-using-lit/item.md +++ b/website/blog/2023-07-20-multi-user-locale-management-using-lit/item.md @@ -94,7 +94,7 @@ export class LocaleContext extends LitElement { ``` -This is fairly boiler-plate. When this components is constructed by the browser it loads the locale and sets up the update handler. Because the update handler runs in the context of an event handler, we make sure to `.bind()` it to the instance that it will need to access. When this component is connected to the browser, it will have access to the requested locale specified when it becomes part of the DOM, so we call `setLocale()` at that moment. +This is fairly boiler-plate. When this component is constructed by the browser it loads the locale and sets up the update handler. Because the update handler runs in the context of an event handler, we make sure to `.bind()` it to the instance that it will need to access. When this component is connected to the browser, it will have access to the requested locale specified when it becomes part of the DOM, so we call `setLocale()` at that moment. The `as CustomEvent` cast there is just for show; please do something smarter with an [assertion function](https://blog.logrocket.com/assertion-functions-typescript/).