Welcome to Triklo, a powerful and user-friendly community platform designed for sharing tips and tricks. Built on the robust Laravel framework, Triklo offers a seamless experience for users to engage, learn, and contribute to a vibrant community.
Triklo is a community-driven application that allows users to share knowledge across various categories. With features like user authentication, content management, and role-based access, Triklo is designed to foster collaboration and knowledge sharing among its users.
Backend: Laravel 8.x
Frontend: Vite, Tailwind CSS, Alpine.js
Database: MySQL
Here's a step-by-step documentation for installing Triklo on cPanel.
app.zip
) containing your Laravel applicationapp.sql
) for the databasepublic_html
directory (or a subfolder if using a subdomain).app.zip
, and upload it.app.zip
and select Extract.triklo
).triklo
, and import app.sql
..env
from your project root.env
and update database credentials:DB_DATABASE=triklo DB_USERNAME=your_db_user DB_PASSWORD=your_db_password
yourdomain.com
) and check if it loads correctly.This documentation explains how to manage languages in the Triklo, including adding, removing, enabling, and disabling languages.
lang
directory contains JSON files for each language.available_languages.json
file defines which languages are available and their properties.en.json
, ar.json
, bn.json
, etc.), which contains the translations for that language.available_languages.json
file.default
to true
or false
.available_languages.json
.Example:
[ { "name": "English", "code": "en", "default": true, "direction": "ltr" }, { "name": "Arabic", "code": "ar", "default": false, "direction": "rtl" } ]
default: true
means it is the default language.direction: ltr
(Left-to-Right) or rtl
(Right-to-Left) sets the text direction.available_languages.json
.name
, code
, default
status, and direction
.lang
directory using the language code (e.g., fr.json
for French).Example of adding French:
Step 1: Add to available_languages.json
{ "name": "French", "code": "fr", "default": false, "direction": "ltr" }
Step 2: Create fr.json
in the lang
directory
{ "welcome": "Bienvenue", "hello": "Bonjour" }
available_languages.json
and remove the corresponding entry.fr.json
).To modify translations, edit the respective JSON file in the lang
directory (e.g., en.json
).
Example:
{ "welcome": "Welcome to our site", "hello": "Hello there!" }
Changes will take effect immediately after saving the file.
available_languages.json
and creating a corresponding JSON file.available_languages.json
and its JSON file.available_languages.json
.