Page 282 of the PDF provides an inconsistent reference to the locale switcher in the text of the book text and the code snippet
book text: We’ll add this code into a new file called app/assets/javascripts/locale_switcher.js :
code snippet: rails6/depot_u/app/javascript/packs/locale_switcher.js
The reference to app/javascript/packs in the code snippet is the correct one. (The other text talks about adding it as a pack tag, so it’s just a typo.