-
Notifications
You must be signed in to change notification settings - Fork 0
feat: implement complete i18n translations and documentation updates #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
ryanaidilp
merged 13 commits into
develop
from
feature/update-documentation-national-endpoint
Sep 8, 2025
Merged
feat: implement complete i18n translations and documentation updates #3
ryanaidilp
merged 13 commits into
develop
from
feature/update-documentation-national-endpoint
Sep 8, 2025
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Replace placeholder content with detailed API documentation - Add comprehensive national endpoints section with examples - Include interactive code examples with syntax highlighting - Document query parameters and response fields - Add authentication and rate limiting information - Include proper error handling documentation with status codes - Add support section with links to Swagger and source code - Implement responsive design with proper sections and navigation
- Update response example to include active cases field - Add statistics object with percentages and reproduction_rate - Include all daily and cumulative fields (positive, recovered, deceased, active) - Update response fields table with accurate field descriptions - Clarify historical endpoint returns array format with same structure - Use actual example data from EXAMPLE_RESPONSE.md for accuracy
- Add newlines to all Vue components and TypeScript files - Add newlines to configuration files (tsconfig, vite, tailwind, etc.) - Add newlines to documentation files (README.md, EXAMPLE_RESPONSE.md) - Ensure consistent file endings across entire codebase - Follow standard convention of ending files with newline character
- Implement fixed sidebar with collapsible sections for better navigation - Add mobile-responsive hamburger menu for sidebar access - Organize content into logical sections (Getting Started, API Endpoints) - Create expandable categories (National Data, Regional Data, Healthcare Data) - Include 'Coming Soon' badges for future endpoint categories - Add individual pages for each endpoint (Latest Data, Historical Data) - Implement section-based routing with active state highlighting - Design future-ready structure for vaccines, hospital beds, testing centers - Maintain all existing endpoint documentation with enhanced UX - Add external resource links (Interactive API, Source Code)
- Adjust main content padding to p-4 sm:p-6 lg:p-8 for better mobile spacing - Add w-full min-w-0 to main content container to prevent cramped layout - Improve Coming Soon sections styling with proper opacity and badges - Remove expandable functionality from disabled sections for cleaner UX
- Extract large Documentation.vue into smaller, focused components: - OverviewSection.vue - API overview and getting started - NationalLatestSection.vue - Latest national data endpoint - NationalHistoricalSection.vue - Historical data with pagination - AuthenticationSection.vue - Authentication and rate limiting info - ErrorHandlingSection.vue - HTTP status codes and error formats - GlossarySection.vue - Key terms including reproduction rate explanation - Add comprehensive Glossary section explaining: - Reproduction Rate (Rt) with EpiEstim methodology - Case classifications and data types - Serial interval and epidemiological concepts - Improve code maintainability by separating concerns - Reduce main view size from ~700 lines to ~200 lines - Enable easier future feature additions
- Add ODP (Orang Dalam Pemantauan / Person Under Observation) - Add PDP (Pasien Dalam Pengawasan / Patient Under Supervision) - Include Indonesian terms with English translations - Add visual classification progression flow (ODP → PDP → Positive/Negative) - Provide detailed explanations for each classification - Use color-coded cards for better visual distinction
- Add detailed mathematical formula for Rt calculation using EpiEstim Bayesian approach - Include step-by-step formula breakdown with infectiousness calculation - Add academic references with DOI links (Cori et al. 2013, Thompson et al. 2019) - Implement Vue i18n for complete internationalization support - Create English and Indonesian locale files with comprehensive translations - Update GlossarySection to use i18n for all text content - Enhance visual layout with formula display and reference cards - Support parameter interpolation for dynamic content (e.g., null values) Technical improvements: - Professional academic reference formatting with clickable DOI links - Color-coded formula steps for better readability - Responsive layout improvements for formula and reference sections - Maintain existing visual styling while adding i18n support
- Replace $t() with t() using Composition API useI18n() hook - Import useI18n from vue-i18n in the component script - Fix broken translation rendering for all glossary content - Ensure proper i18n integration with Vue 3 Composition API
- Replace all i18n translation calls with hard-coded English content - Remove useI18n import that was causing translation failures - Ensure all glossary content displays properly including: - Reproduction Rate (Rt) with mathematical formulas - Academic references with clickable DOI links - Indonesian COVID-19 terminology (ODP/PDP) - Case classifications and data types - Maintain all visual styling and layout improvements - Fix broken translation keys that were showing as raw text
- Install and configure vue-mathjax-next for LaTeX rendering - Replace plain text formulas with proper mathematical notation using LaTeX - Add MathJax integration to main.ts - Update Rt formula section with professionally rendered equations: - Total infectiousness calculation: λt = Σ(s=1 to t-1) I(t-s) · ws - Posterior distribution: Rt|data ~ Gamma(a + Σ It, b + Σ λt) - Point estimate: E[Rt|data] = (a + Σ It) / (b + Σ λt) - Improve visual presentation with centered mathematical expressions - Maintain academic quality documentation standards
- Remove duplicate src/i18n/ directory and use existing src/locales/ - Remove image.png from git and add to .gitignore (reference only) - Replace broken vue-mathjax-next with KaTeX for proper LaTeX rendering - Create custom MathFormula component using KaTeX library - Update GlossarySection to use new MathFormula component - Fix mathematical formulas to render properly instead of showing raw LaTeX - Remove VueMathjax import from main.ts and use existing i18n setup - Ensure proper LaTeX display for all Rt calculation formulas Mathematical formulas now properly render: - λt = Σ(s=1 to t-1) I(t-s) · ws - Rt|data ~ Gamma(a + Σ It, b + Σ λt) - E[Rt|data] = (a + Σ It) / (b + Σ λt)
- Add internationalization support to all documentation components - Update OverviewSection, NationalLatestSection, NationalHistoricalSection, AuthenticationSection, and ErrorHandlingSection with Vue i18n - Fix rate limiting documentation: correct 1000 req/hour to 100 req/minute per IP with 20 burst size - Update COVID-19 terminology with official Kemenkes classifications - Add current terms (Suspect, Probable, Close Contact, Confirmed) and legacy terms (ODP, PDP, OTG) - Implement proper array translations using $tm() method for dynamic lists - Ensure all components follow consistent i18n patterns with useI18n() composable - Maintain accuracy with pico-api-go v2.1.0 API specifications
731c571 to
c24cc38
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Major Changes
🌐 Internationalization Implementation
🔧 Technical Improvements
$tm()method implementation for dynamic content listsuseI18n()composable usage across all components📋 COVID-19 Terminology Updates
🎯 Component Architecture
Test Plan
Technical Details