d0bba19a179f1095d1f1c8942d3508b51bdfcd3a
Refactored legal.js from 135 → 124 lines (8% reduction) by: - Removing local browserLang() and getLang() that are now in utils - Simplifying to focus on page-specific injection logic Kept legal page-specific functionality: - Local LANG_KEY storage for page language preference - injectTopbar() with language switcher buttons - injectFooter() with language-aware copyright and legal links - Event delegation for language link clicks - DOMContentLoaded handler Added clear JSDoc comments explaining the injection pattern and how legal pages dynamically reuse common UI elements while supporting language switching via event delegation. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
Introduction
TODO: Give a short introduction of your project. Let this section explain the objectives or the motivation behind this project.
Getting Started
TODO: Guide users through getting your code up and running on their own system. In this section you can talk about:
- Installation process
- Software dependencies
- Latest releases
- API references
Build and Test
TODO: Describe and show how to build your code and run the tests.
Contribute
TODO: Explain how other users and developers can contribute to make your code better.
If you want to learn more about creating good readme files then refer the following guidelines. You can also seek inspiration from the below readme files:
Description
Languages
C#
78.1%
HTML
8.1%
JavaScript
7.6%
CSS
4.2%
Dockerfile
2%