mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
chore: move language files to the root directory to share them with both Flutter and Tauri. (#2970)
This commit is contained in:
parent
2c669f1b85
commit
3d72b6fa12
2
frontend/appflowy_flutter/.gitignore
vendored
2
frontend/appflowy_flutter/.gitignore
vendored
@ -75,3 +75,5 @@ windows/flutter/dart_ffi/
|
||||
coverage/
|
||||
|
||||
**/failures/*.png
|
||||
|
||||
assets/translations/*.json
|
||||
|
@ -10,6 +10,11 @@ cd /d "%~dp0"
|
||||
|
||||
cd ..\..\..\appflowy_flutter
|
||||
|
||||
REM copy the resources/translations folder to
|
||||
REM the appflowy_flutter/assets/translation directory
|
||||
echo Copying resources/translations to appflowy_flutter/assets/translations
|
||||
xcopy /E /Y /I ..\resources\translations assets\translations
|
||||
|
||||
call flutter packages pub get
|
||||
|
||||
echo Specifying source directory for AppFlowy Localizations.
|
||||
|
@ -10,6 +10,10 @@ cd "$(dirname "$0")"
|
||||
# Navigate to the project root
|
||||
cd ../../../appflowy_flutter
|
||||
|
||||
# copy the resources/translations folder to
|
||||
# the appflowy_flutter/assets/translation directory
|
||||
cp -r ../resources/translations assets/translations
|
||||
|
||||
flutter packages pub get
|
||||
|
||||
echo "Specifying source directory for AppFlowy Localizations."
|
||||
|
@ -9,8 +9,8 @@ export async function defineConfig(env) {
|
||||
|
||||
return {
|
||||
referenceLanguage: 'en',
|
||||
plugins: [pluginJson({
|
||||
pathPattern: './frontend/appflowy_flutter/assets/translations/{language}.json',
|
||||
plugins: [pluginJson({
|
||||
pathPattern: './frontend/resources/translations/{language}.json',
|
||||
variableReferencePattern: ["@:"]
|
||||
}), standardLintRules()]
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user