I'm try to make a language pack flarum. But I'm just tell you "I'm a newbie of Github and Composer".
I get this error when I'm installing my package into my flarum site.
[InvalidArgumentException]
Could not find package brarear/flarum-ext-thai at any version for your minimum-stability (beta). Check the package spelling or your minimum-stability
What I did ?
- I'm create a repository in Github.com
- Pull it in to my computer then init the composer.json like this
{
"name": "brarear/flarum-ext-thai",
"type": "flarum-extension",
"description": "Thai language pack.",
"keywords": ["locale"],
"license": "MIT",
"authors": [
{
"name": "Brarear",
"email": "brarear@gmail.com"
}
],
"support": {
"issues": "https://github.com/brarear/flarum-ext-thai/issues",
"source": "https://github.com/brarear/flarum-ext-thai"
},
"require": {
"flarum/core": "^0.1.0-beta.7"
},
"extra": {
"branch-alias": {
"dev-master": "0.0.x-dev"
},
"flarum-extension": {
"title": "Thai",
"icon": {
"image": "icon.svg",
"backgroundColor": "#00247d",
"backgroundSize": "cover",
"backgroundPosition": "center"
}
},
"flarum-locale": {
"code": "th",
"title": "Thai"
}
}
}
- Create or copy all require file from official English language pack
locale/*
bootstrap.php
icon.svg
- Translating to my language
- Push it to Github.com
- Create new release tag name "v0.1.0-beta.1"
- Try to install my language pack into my flarum site then I got an error.
This is my package source
https://github.com/brarear/flarum-ext-thai
Hope someone can save my day. Because this is my first time of creating composer package.